diff options
author | Manuel Bentele | 2020-09-10 13:48:43 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-09-16 07:37:56 +0200 |
commit | aead58c61e402c6233e10c046996b0da4830210f (patch) | |
tree | 25cc5a2355d184eb840f32ed4c9bc630ef0889d2 | |
parent | Generate util-linux configuration to build xlosetup (diff) | |
download | xloop-aead58c61e402c6233e10c046996b0da4830210f.tar.gz xloop-aead58c61e402c6233e10c046996b0da4830210f.tar.xz xloop-aead58c61e402c6233e10c046996b0da4830210f.zip |
Ignore source files when packaging sources
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 08b0138..53def2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,13 +40,14 @@ if(${CMAKE_BUILD_TYPE} MATCHES Release) set(CPACK_SOURCE_GENERATOR "TGZ;ZIP") set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME}) set(CPACK_MONOLITHIC_INSTALL True) - set(CPACK_IGNORE_FILES ".git*") + set(CPACK_SOURCE_IGNORE_FILES "/build/;/.git/;.gitignore$;.*~") set(CPACK_PACKAGE_VERSION ${VERSION}) set(CPACK_PACKAGE_SECTION admin) set(CPACK_PACKAGE_VENDOR "University of Freiburg") set(CPACK_PACKAGE_CONTACT "Christian Rößler <christian.roessler@rz.uni-freiburg.de>") set(CPACK_PACKAGE_CHECKSUM SHA256) set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_${CMAKE_SYSTEM_PROCESSOR}) + set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_source) set(CPACK_STRIP_FILES True) set(CPACK_SET_DESTDIR True) set(CMAKE_INSTALL_PREFIX /usr) |