Source package excludes .git and generate only TGZ

This commit is contained in:
Jon Siwek 2010-11-19 11:59:22 -06:00
parent 0878e9b8f1
commit 4982c02eba
2 changed files with 2 additions and 1 deletions

View file

@ -213,7 +213,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
endif () endif ()
# Ignore the build directory # Ignore the build directory
set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_BINARY_DIR}) set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_BINARY_DIR} ".git")
include(CPack) include(CPack)

View file

@ -12,6 +12,7 @@
# CPACK_GENERATOR is set by this module # CPACK_GENERATOR is set by this module
set(CPACK_GENERATOR TGZ) set(CPACK_GENERATOR TGZ)
set(CPACK_SOURCE_GENERATOR TGZ)
if (APPLE) if (APPLE)
list(APPEND CPACK_GENERATOR PackageMaker) list(APPEND CPACK_GENERATOR PackageMaker)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")