1
0
Fork 0

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:
James Turner 2018-10-01 22:28:08 +01:00
parent cce3ae0268
commit aa6c4c758a

View file

@ -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 )