mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 14:10:40 +02:00
Merge pull request #4333 from birarda/master
pass 10.9 SDK as CMAKE_OSX_SYSROOT
This commit is contained in:
commit
880c8f370f
1 changed files with 11 additions and 2 deletions
|
@ -88,8 +88,17 @@ endif ()
|
||||||
|
|
||||||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT_CMAKE_PREFIX_PATH})
|
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT_CMAKE_PREFIX_PATH})
|
||||||
|
|
||||||
# set our OS X deployment target to
|
if (APPLE)
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.8)
|
# set our OS X deployment target
|
||||||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.8)
|
||||||
|
|
||||||
|
# find the 10.9 SDK path
|
||||||
|
execute_process(COMMAND xcodebuild -sdk -version OUTPUT_VARIABLE XCODE_SDK_VERSIONS)
|
||||||
|
string(REGEX MATCH \\/.+MacOSX10.9.sdk OSX_SDK_PATH ${XCODE_SDK_VERSIONS})
|
||||||
|
|
||||||
|
# set that as the SDK to use
|
||||||
|
set(CMAKE_OSX_SYSROOT ${OSX_SDK_PATH})
|
||||||
|
endif ()
|
||||||
|
|
||||||
# Find includes in corresponding build directories
|
# Find includes in corresponding build directories
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
Loading…
Reference in a new issue