diff options
author | Brad King <brad.king@kitware.com> | 2021-01-06 22:02:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-07 21:56:05 (GMT) |
commit | 6410425e5b036dc643ea40343899c04cf8b2fc85 (patch) | |
tree | e02fc7fcaa7c608ad6c1352d80a3209ed0b7708c /.gitlab/ci/configure_macos_package_common.cmake | |
parent | bbec5a03c820a9f5a397bc3310cba9f123dcfd57 (diff) | |
download | CMake-6410425e5b036dc643ea40343899c04cf8b2fc85.zip CMake-6410425e5b036dc643ea40343899c04cf8b2fc85.tar.gz CMake-6410425e5b036dc643ea40343899c04cf8b2fc85.tar.bz2 |
ci: build separate macOS packages for macOS 10.13+ and macOS 10.10+
In order to support modern macOS features like Dark Mode, we need to use
Qt 5.15, which requires macOS 10.13. However, we still want to support
macOS 10.10 as well, for which we need to use Qt 5.9. Build separate
macOS packages for these use cases.
Fixes: #21606
Issue: #20825
Diffstat (limited to '.gitlab/ci/configure_macos_package_common.cmake')
-rw-r--r-- | .gitlab/ci/configure_macos_package_common.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_macos_package_common.cmake b/.gitlab/ci/configure_macos_package_common.cmake new file mode 100644 index 0000000..3aa8ae2 --- /dev/null +++ b/.gitlab/ci/configure_macos_package_common.cmake @@ -0,0 +1,26 @@ +set(CMake_DOC_ARTIFACT_PREFIX "$ENV{CI_PROJECT_DIR}/build/install-doc" CACHE PATH "") + +# Set up install destinations as expected by the packaging scripts. +set(CMAKE_INSTALL_PREFIX "/" CACHE PATH "") +set(CMAKE_DOC_DIR "doc/cmake" CACHE STRING "") + +# Settings for CMake packages for macOS. +set(CPACK_DMG_FORMAT "UDBZ" CACHE STRING "") +set(CMAKE_CXX_FLAGS "-stdlib=libc++" CACHE STRING "") +set(CMAKE_C_STANDARD "11" CACHE STRING "") +set(CMAKE_CXX_STANDARD "14" CACHE STRING "") +set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "") +set(CMAKE_SKIP_BOOTSTRAP_TEST "TRUE" CACHE STRING "") +set(BUILD_CursesDialog "ON" CACHE BOOL "") +set(BUILD_QtDialog "TRUE" CACHE BOOL "") +set(CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL "3" CACHE STRING "") +set(CMake_INSTALL_DEPENDENCIES "ON" CACHE BOOL "") +set(CMAKE_SKIP_RPATH "TRUE" CACHE BOOL "") +set(CMake_TEST_NO_FindPackageModeMakefileTest "TRUE" CACHE BOOL "") + +# XXX(sccache): restore sccache when it works for multiple architectures: +# https://github.com/mozilla/sccache/issues/847 +set(configure_no_sccache 1) + +include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") |