diff options
author | Brad King <brad.king@kitware.com> | 2022-05-19 17:40:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-19 19:25:55 (GMT) |
commit | 4c7c66dcf542af7f9d4f0632cfebc499c58602b7 (patch) | |
tree | edf953c092f2b454779d5b12b64ad1e90068cac7 /CMakeCPackOptions.cmake.in | |
parent | 729ee30c2eb627808f64199e3337fe7b0fcf8a74 (diff) | |
download | CMake-4c7c66dcf542af7f9d4f0632cfebc499c58602b7.zip CMake-4c7c66dcf542af7f9d4f0632cfebc499c58602b7.tar.gz CMake-4c7c66dcf542af7f9d4f0632cfebc499c58602b7.tar.bz2 |
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.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in index 81dfeee..f354362 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" ) |