summaryrefslogtreecommitdiffstats
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-28 14:33:45 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-28 18:39:44 (GMT)
commit0929221ca3641ed890b15fc9abd416a5311138cf (patch)
treee2e993f3238516f69888fcbee72edede8da5753c /CMakeCPack.cmake
parentce2e8253069fa1e5750b800a19f85c6e3b359bd8 (diff)
downloadCMake-0929221ca3641ed890b15fc9abd416a5311138cf.zip
CMake-0929221ca3641ed890b15fc9abd416a5311138cf.tar.gz
CMake-0929221ca3641ed890b15fc9abd416a5311138cf.tar.bz2
gitlab-ci: Simplify Windows packaging pipeline
In commit 4c7c66dcf5 (gitlab-ci: Add jobs to make Windows x86_64 and i386 packages, 2022-05-19, v3.24.0-rc1~112^2) we used a separate Windows packaging job in nightly packaging pipelines. It did not run in release pipelines, where we need to run the final packaging step manually with signing. Simplify nightly packaging pipelines by running `cpack` at the end of the build job as we do for other platforms. For release packaging pipelines, create an archive of the files needed to build a package, and present this as the built "package" on Windows.
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r--CMakeCPack.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index 38fec3f..798affd 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -264,5 +264,9 @@ set(CPACK_SOURCE_IGNORE_FILES
"~$"
)
+if(CMake_CPACK_CUSTOM_SCRIPT)
+ include(${CMake_CPACK_CUSTOM_SCRIPT})
+endif()
+
# include CPack model once all variables are set
include(CPack)