mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
CMakeCPack: Exclude version-control-specific files from source package
This commit is contained in:
parent
c40d130034
commit
fa23f66ad5
@ -245,5 +245,23 @@ configure_file("${CMake_SOURCE_DIR}/CMakeCPackOptions.cmake.in"
|
||||
"${CMake_BINARY_DIR}/CMakeCPackOptions.cmake" @ONLY)
|
||||
set(CPACK_PROJECT_CONFIG_FILE "${CMake_BINARY_DIR}/CMakeCPackOptions.cmake")
|
||||
|
||||
set(CPACK_SOURCE_IGNORE_FILES
|
||||
# Files specific to version control.
|
||||
"/\\\\.git/"
|
||||
"/\\\\.gitattributes$"
|
||||
"/\\\\.github/"
|
||||
"/\\\\.gitignore$"
|
||||
"/\\\\.hooks-config$"
|
||||
|
||||
# Cygwin package build.
|
||||
"/\\\\.build/"
|
||||
|
||||
# Temporary files.
|
||||
"\\\\.swp$"
|
||||
"\\\\.#"
|
||||
"/#"
|
||||
"~$"
|
||||
)
|
||||
|
||||
# include CPack model once all variables are set
|
||||
include(CPack)
|
||||
|
@ -208,12 +208,6 @@ if(CPACK_GENERATOR MATCHES "IFW")
|
||||
|
||||
endif()
|
||||
|
||||
if(CPACK_GENERATOR MATCHES "CygwinSource")
|
||||
# when packaging source make sure the .build directory is not included
|
||||
set(CPACK_SOURCE_IGNORE_FILES
|
||||
"/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$")
|
||||
endif()
|
||||
|
||||
if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
|
||||
if(CMAKE_PACKAGE_QTGUI)
|
||||
set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")
|
||||
|
Loading…
Reference in New Issue
Block a user