From 2aab3f95133e50aa6d9ce5d86689dc8d952b258d Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 10 Mar 2013 08:11:48 +0800 Subject: [PATCH] cmake ignore non source things for make dist Signed-off-by: Andy Green --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)