diff options
author | Brad King <brad.king@kitware.com> | 2022-04-20 15:55:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-20 17:27:39 (GMT) |
commit | 2167fce99befa565c3a70d09a2be65a865a2f23a (patch) | |
tree | 88b0fac91611aa1dc76c039e5f8af4cb3f6e9e88 /CMakeCPack.cmake | |
parent | 722e4d4619d32fa3da1a3de7fb7b37a87f5a6a8c (diff) | |
download | CMake-2167fce99befa565c3a70d09a2be65a865a2f23a.zip CMake-2167fce99befa565c3a70d09a2be65a865a2f23a.tar.gz CMake-2167fce99befa565c3a70d09a2be65a865a2f23a.tar.bz2 |
Utilities/Release: Drop SLA from CMake macOS DMG package
macOS 12 deprecates the tools needed to attach a SLA to a `.dmg`.
CMake 3.23 added `CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE` to
control whether `CPACK_RESOURCE_FILE_LICENSE` is used as the SLA.
CMake 3.24 will add policy CMP0133 to disable the SLA by default.
Explicitly turn off the SLA for CMake's official macOS binaries.
This will allow them to build on future macOS versions that have
no SLA tooling available.
Issue: #22978
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r-- | CMakeCPack.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake index 9357804..38fec3f 100644 --- a/CMakeCPack.cmake +++ b/CMakeCPack.cmake @@ -22,6 +22,7 @@ set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}") set(CPACK_PACKAGE_VERSION "${CMake_VERSION}") set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}") set(CPACK_SOURCE_PACKAGE_FILE_NAME "cmake-${CMake_VERSION}") +set(CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE OFF) # Installers for 32- vs. 64-bit CMake: # - Root install directory (displayed to end user at installer-run time) |