Commit 76f97e62 authored by jcfr's avatar jcfr

COMP: Update minimum required CMAKE_OSX_DEPLOYMENT_TARGET to 10.11

This change is motivated by:

* the user poll https://discourse.slicer.org/t/poll-which-version-of-macos-do-you-use-to-run-slicer/6055

* the deployment target explicitly required by BRAINSTools. Note that this
  could be relaxed because it is internally only needed to find newer version
  of TBB when BRAINSABC module is enabled.
  From TBB:
  > Note that in TBB 2018 and higher we do not support OS X 10.9, and it
  > is not tested anymore. TBB team recommends you to either switch to
  > 10.11 or stay at an older version of TBB.
  > See https://github.com/conda-forge/tbb-feedstock/issues/42#issuecomment-427921828
  > and https://github.com/01org/tbb/blob/tbb_2018/doc/Release_Notes.txt

* Deployment target >= 10.11 is the one officially supported by Qt 5.10
  and Qt 5.11.
  See https://doc.qt.io/qt-5.11/supported-platforms-and-configurations.html

git-svn-id: http://svn.slicer.org/Slicer4/trunk@28019 3bd1e089-480b-0410-8dfb-8563597acbee
parent 724ed0fb
......@@ -19,7 +19,7 @@ dashboard_set(Slicer_RELEASE_TYPE "Experimental") # (E)xperimental, (P)revie
dashboard_set(WITH_PACKAGES FALSE) # Enable to generate packages
dashboard_set(SVN_REVISION "") # Specify a revision for Stable release
if(APPLE)
dashboard_set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
dashboard_set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11")
endif()
dashboard_set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
dashboard_set(COMPILER "g++-X.Y.Z") # Used only to set the build name
......
......@@ -124,10 +124,8 @@ if(APPLE)
endif()
endif()
# Require minimum deployment target of 10.9. In 10.9 libc++ replaces libstdc++
# as the default runtime. Requiring this minimum ensures that all libraries
# use libc++.
set(required_deployment_target "10.9")
# Starting with 10.9, libc++ replaces libstdc++ as the default runtime.
set(required_deployment_target "10.11")
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS ${required_deployment_target})
message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET must be ${required_deployment_target} or greater.")
......
......@@ -18,7 +18,7 @@ dashboard_set(SCRIPT_MODE "Experimental") # Experimental, Continuous
dashboard_set(Slicer_RELEASE_TYPE "Experimental") # (E)xperimental, (P)review or (S)table
dashboard_set(EXTENSIONS_INDEX_BRANCH "master") # "master", X.Y, ...
if(APPLE)
dashboard_set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
dashboard_set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11")
endif()
dashboard_set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
dashboard_set(COMPILER "g++-X.Y.Z") # Used only to set the build name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment