From a8669fddc818272dca014ccb478cf7e72f22d21e Mon Sep 17 00:00:00 2001 From: Aang23 Date: Tue, 9 Apr 2019 22:23:09 +0200 Subject: [PATCH] Update CPack and exclude /lib --- lib/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index ef8d018..dbb7c19 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -120,8 +120,9 @@ set(CPACK_PACKAGE_VENDOR "gelldur") set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}") set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION -"/usr/local" -"/usr/local/include" -"/usr/local/lib64" +"${CMAKE_INSTALL_PREFIX}" +"${CMAKE_INSTALL_PREFIX}/include" +"${CMAKE_INSTALL_PREFIX}/lib64" +"${CMAKE_INSTALL_PREFIX}/lib" ) include(CPack) \ No newline at end of file