diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d6399586..e65cb193d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -726,6 +726,9 @@ if (NOT WITHOUT_TESTAPPS AND NOT WITHOUT_SERVER) COMPONENT examples) endif() +# build subdir is not part of sources +set(CPACK_SOURCE_IGNORE_FILES $(CPACK_SOURCE_IGNORE_FILES) ".git" "build" "tgz" "tar.gz") + # Most people are more used to "make dist" compared to "make package_source" add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)