From 552177c33a3cbe427143b7769df5b151cf2bcb9e Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Fri, 19 Nov 2010 10:45:46 -0600 Subject: [PATCH] CPack's source package now ignores the build dir --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23a3225a8a..20bfbe2179 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,6 +212,9 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(CPACK_RPM_PACKAGE_LICENSE "BSD") endif () +# Ignore the build directory +set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_BINARY_DIR}) + include(CPack) ########################################################################