Build: Fix deployment target on Mac #1421
This commit is contained in:
parent
3205961655
commit
c63aff6dda
@ -113,10 +113,12 @@ if(WIN32)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
if (NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
message("OS X SDK Path: ${CMAKE_OSX_SYSROOT}")
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "OS X Deployment target (SDK version)" FORCE)
|
if (CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||||
|
message("OS X Deployment Target: ${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||||
|
else ()
|
||||||
|
message("OS X Deployment Target: (default)")
|
||||||
endif ()
|
endif ()
|
||||||
message(STATUS "Mac OS deployment target (SDK version): ${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
Loading…
Reference in New Issue
Block a user