mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 09:13:55 +02:00
Merge pull request #15433 from Atlante45/fix/osx-deploy-target
Dependencies have correct osx deploy target
This commit is contained in:
commit
668af7c4a3
2 changed files with 9 additions and 4 deletions
|
@ -10,7 +10,14 @@ endif()
|
||||||
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros/TargetPython.cmake")
|
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros/TargetPython.cmake")
|
||||||
target_python()
|
target_python()
|
||||||
|
|
||||||
if (HIFI_ANDROID )
|
# set our OS X deployment target
|
||||||
|
# (needs to be set before first project() call and before prebuild.py)
|
||||||
|
# Will affect VCPKG dependencies
|
||||||
|
if (APPLE)
|
||||||
|
set(ENV{MACOSX_DEPLOYMENT_TARGET} 10.9)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (HIFI_ANDROID)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${HIFI_PYTHON_EXEC} ${CMAKE_CURRENT_SOURCE_DIR}/prebuild.py --android ${HIFI_ANDROID_APP} --build-root ${CMAKE_BINARY_DIR}
|
COMMAND ${HIFI_PYTHON_EXEC} ${CMAKE_CURRENT_SOURCE_DIR}/prebuild.py --android ${HIFI_ANDROID_APP} --build-root ${CMAKE_BINARY_DIR}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
|
|
@ -88,12 +88,10 @@ if (APPLE)
|
||||||
exec_program(sw_vers ARGS -productVersion OUTPUT_VARIABLE OSX_VERSION)
|
exec_program(sw_vers ARGS -productVersion OUTPUT_VARIABLE OSX_VERSION)
|
||||||
string(REGEX MATCH "^[0-9]+\\.[0-9]+" OSX_VERSION ${OSX_VERSION})
|
string(REGEX MATCH "^[0-9]+\\.[0-9]+" OSX_VERSION ${OSX_VERSION})
|
||||||
message(STATUS "Detected OS X version = ${OSX_VERSION}")
|
message(STATUS "Detected OS X version = ${OSX_VERSION}")
|
||||||
|
message(STATUS "OS X deployment target = ${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||||
|
|
||||||
set(OSX_SDK "${OSX_VERSION}" CACHE STRING "OS X SDK version to look for inside Xcode bundle or at OSX_SDK_PATH")
|
set(OSX_SDK "${OSX_VERSION}" CACHE STRING "OS X SDK version to look for inside Xcode bundle or at OSX_SDK_PATH")
|
||||||
|
|
||||||
# set our OS X deployment target
|
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
|
|
||||||
|
|
||||||
# find the SDK path for the desired SDK
|
# find the SDK path for the desired SDK
|
||||||
find_path(
|
find_path(
|
||||||
_OSX_DESIRED_SDK_PATH
|
_OSX_DESIRED_SDK_PATH
|
||||||
|
|
Loading…
Reference in a new issue