aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--CMakeLists.txt5
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 1c932810..d59b1b7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,5 @@ output.log
clazy.1
/dev-scripts/*.log
clanglazy_export.h
+CPackConfig.cmake
+CPackSourceConfig.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac7bfd58..6f229861 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -259,6 +259,11 @@ if (NOT CLAZY_BUILD_WITH_CLANG)
link_to_llvm(clazy-standalone "${CLAZY_STANDALONE_LLVM_LIBS}")
install(TARGETS clazy-standalone DESTINATION bin PERMISSIONS OWNER_WRITE OWNER_EXECUTE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE)
+
+ set(CPACK_PACKAGE_VERSION_MAJOR ${CLAZY_VERSION_MAJOR})
+ set(CPACK_PACKAGE_VERSION_MINOR ${CLAZY_VERSION_MINOR})
+ set(CPACK_PACKAGE_VERSION_PATCH ${CLAZY_VERSION_PATCH})
+ include(CPack)
else()
set(LLVM_LINK_COMPONENTS
Support