1
0
Fork 0

Force 10.7 deployment version on Mac.

This commit is contained in:
James Turner 2015-02-09 15:11:28 +00:00
parent ef2c9b995f
commit b8c9cd454e

View file

@ -5,6 +5,15 @@ include (CheckCSourceCompiles)
include (CheckCXXSourceCompiles) include (CheckCXXSourceCompiles)
include (CheckIncludeFile) include (CheckIncludeFile)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0042 NEW)
endif()
# set this before project()
# using 10.7 because boost requires libc++ and 10.6 doesn't include it
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
project(FlightGear) project(FlightGear)
# We have some custom .cmake scripts not in the official distribution. # We have some custom .cmake scripts not in the official distribution.