summaryrefslogtreecommitdiff
path: root/CMakeCPackOptions.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-19 13:40:22 -0400
committerBrad King <brad.king@kitware.com>2022-05-19 15:25:55 -0400
commit4c7c66dcf542af7f9d4f0632cfebc499c58602b7 (patch)
treeedf953c092f2b454779d5b12b64ad1e90068cac7 /CMakeCPackOptions.cmake.in
parent729ee30c2eb627808f64199e3337fe7b0fcf8a74 (diff)
downloadcmake-4c7c66dcf542af7f9d4f0632cfebc499c58602b7.tar.gz
gitlab-ci: Add jobs to make Windows x86_64 and i386 packages
Run CPack in a separate job for nightly binaries, and not at all for release binaries. Unlike macOS disk images (.dmg), we cannot sign the binaries inside Windows installers (.msi) after-the-fact. Instead, produce enough artifacts from the build job to sign and package release binaries manually. Port build settings from `Utilities/Release/win/x86/Dockerfile` and its helper scripts.
Diffstat (limited to 'CMakeCPackOptions.cmake.in')
-rw-r--r--CMakeCPackOptions.cmake.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in
index 81dfeee87a..f354362b06 100644
--- a/CMakeCPackOptions.cmake.in
+++ b/CMakeCPackOptions.cmake.in
@@ -248,6 +248,13 @@ if("${CPACK_GENERATOR}" STREQUAL "WIX")
set(CPACK_WIX_LIGHT_EXTRA_FLAGS "-dcl:high")
+ if(NOT "$ENV{CMAKE_CI_PACKAGE}" STREQUAL "")
+ # Suppress validation. It does not work without
+ # an interactive session or an admin account.
+ # https://github.com/wixtoolset/issues/issues/3968
+ list(APPEND CPACK_WIX_LIGHT_EXTRA_FLAGS "-sval")
+ endif()
+
set(CPACK_WIX_UI_BANNER
"@CMake_SOURCE_DIR@/Utilities/Release/WiX/ui_banner.jpg"
)