We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b058ea + 0986415 commit 90c3713Copy full SHA for 90c3713
cmake/system.cmake
@@ -28,6 +28,11 @@ ELSE(WIN32)
28
STRING(REGEX MATCH "[0-9]+.[0-9]+" VERSION "${MACOSX_VERSION}")
29
SET(MACOS_VERSION ${VERSION})
30
SET(HOST_SYSTEM "macosx")
31
+ IF(NOT DEFINED ENV{MACOSX_DEPLOYMENT_TARGET})
32
+ # Set cache variable - end user may change this during ccmake or cmake-gui configure.
33
+ SET(CMAKE_OSX_DEPLOYMENT_TARGET ${MACOS_VERSION} CACHE STRING
34
+ "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.")
35
+ ENDIF()
36
ELSE(APPLE)
37
38
IF(EXISTS "/etc/issue")
0 commit comments