diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e9ba21..135b9d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,6 +273,8 @@ if (URL_INSTALL AND NOT URL_AMALGAMATED) set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}") set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") set(CPACK_SOURCE_GENERATOR "ZIP") + set(CPACK_SOURCE_IGNORE_FILES \\.git* /build*/ /*\\.yml) + set(CPACK_VERBATIM_VARIABLES ON) include(CPack) endif() endif()