Mac: set CMake deployment target the right way
Necessary for building with the Mojavae 10.14 SDK. This also meant bumping the min version to OS-X 10.9
This commit is contained in:
parent
cce3ae0268
commit
aa6c4c758a
1 changed files with 2 additions and 5 deletions
|
@ -53,6 +53,8 @@ endif()
|
|||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
||||
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
|
||||
|
||||
project(FlightGear)
|
||||
|
||||
# We have some custom .cmake scripts not in the official distribution.
|
||||
|
@ -67,11 +69,6 @@ if(InSourceBuild)
|
|||
message(WARNING " mkdir ../fgbuild && cd ../fgbuild && cmake ${CMAKE_SOURCE_DIR}")
|
||||
endif(InSourceBuild)
|
||||
|
||||
# using 10.7 because boost requires libc++ and 10.6 doesn't include it
|
||||
# Cmake documentation says we must set this before calling project(), but
|
||||
# it only seems to be picked up setting it /after/ the call to project()
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7")
|
||||
|
||||
include(GNUInstallDirs)
|
||||
# System detection/default settings
|
||||
include( DetectDistro )
|
||||
|
|
Loading…
Add table
Reference in a new issue