From 4982c02eba1010c9301c993915fef357d0779b56 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Fri, 19 Nov 2010 11:59:22 -0600 Subject: [PATCH] Source package excludes .git and generate only TGZ --- CMakeLists.txt | 2 +- cmake/SetPackageGenerators.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ad183635b..64555b02d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,7 +213,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") endif () # Ignore the build directory -set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_BINARY_DIR}) +set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_BINARY_DIR} ".git") include(CPack) diff --git a/cmake/SetPackageGenerators.cmake b/cmake/SetPackageGenerators.cmake index 489441cc83..edd80ee3d6 100644 --- a/cmake/SetPackageGenerators.cmake +++ b/cmake/SetPackageGenerators.cmake @@ -12,6 +12,7 @@ # CPACK_GENERATOR is set by this module set(CPACK_GENERATOR TGZ) +set(CPACK_SOURCE_GENERATOR TGZ) if (APPLE) list(APPEND CPACK_GENERATOR PackageMaker) elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")