summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2020-09-10 13:48:43 +0200
committerManuel Bentele2020-09-16 07:37:56 +0200
commitaead58c61e402c6233e10c046996b0da4830210f (patch)
tree25cc5a2355d184eb840f32ed4c9bc630ef0889d2
parentGenerate util-linux configuration to build xlosetup (diff)
downloadxloop-aead58c61e402c6233e10c046996b0da4830210f.tar.gz
xloop-aead58c61e402c6233e10c046996b0da4830210f.tar.xz
xloop-aead58c61e402c6233e10c046996b0da4830210f.zip
Ignore source files when packaging sources
-rw-r--r--CMakeLists.txt3
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)