diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/packages.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/packages.cmake b/cmake/packages.cmake index 464b04b..f14d273 100644 --- a/cmake/packages.cmake +++ b/cmake/packages.cmake @@ -1,3 +1,5 @@ +include(GNUInstallDirs) + set(CPACK_PACKAGE_NAME ${PROJECT_NAME}) set(CPACK_PACKAGE_VERSION_MAJOR ${${PROJECT_NAME}_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${${PROJECT_NAME}_VERSION_MINOR}) @@ -37,6 +39,9 @@ if(WITH_RPM) set(CPACK_RPM_PACKAGE_LICENSE "AGPL-3") set(CPACK_RPM_PACKAGE_URL "https://schlomp.space/tastytea/${PROJECT_NAME}") set(CPACK_RPM_PACKAGE_REQUIRES "libcurl >= 7.32") + list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION + "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake" + "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig") set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.${CPACK_PACKAGE_ARCHITECTURE}") |