diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-01-11 19:05:57 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-01-11 19:05:57 +0300 |
commit | c63aff6dda9fcb35049b70998e18b9b041159b3f (patch) | |
tree | 5b28ef5a92f0986e9bdee5f27bf1d50f30386859 /CMakeLists.txt | |
parent | 3205961655e5a60cbdf692a51f60e55c6b9941b2 (diff) |
Build: Fix deployment target on Mac #1421
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2677824c..fd8a27e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,10 +113,12 @@ if(WIN32) endif() if (APPLE) - if (NOT CMAKE_OSX_DEPLOYMENT_TARGET) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "OS X Deployment target (SDK version)" FORCE) + message("OS X SDK Path: ${CMAKE_OSX_SYSROOT}") + if (CMAKE_OSX_DEPLOYMENT_TARGET) + message("OS X Deployment Target: ${CMAKE_OSX_DEPLOYMENT_TARGET}") + else () + message("OS X Deployment Target: (default)") endif () - message(STATUS "Mac OS deployment target (SDK version): ${CMAKE_OSX_DEPLOYMENT_TARGET}") endif () if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |