diff options
author | tastytea | 2020-01-09 18:31:14 +0100 |
---|---|---|
committer | tastytea | 2020-01-09 18:32:52 +0100 |
commit | 20e3dc5e095449fff1c782366b2b1408d5e825fd (patch) | |
tree | 351d80905a36529a311c09e527f326f97276912b | |
parent | b630ef3b2e93c25f942041bf60cde0dddd26f35a (diff) | |
download | mastodonpp-20e3dc5e095449fff1c782366b2b1408d5e825fd.tar mastodonpp-20e3dc5e095449fff1c782366b2b1408d5e825fd.tar.gz mastodonpp-20e3dc5e095449fff1c782366b2b1408d5e825fd.zip |
Fix RPM conflicts with pkg-config and 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}") |