From b8c9cd454ef80b53f5aa3be0fa976a74d9df9700 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 9 Feb 2015 15:11:28 +0000 Subject: [PATCH] Force 10.7 deployment version on Mac. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b161e646..fa8f728b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,15 @@ include (CheckCSourceCompiles) include (CheckCXXSourceCompiles) 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) # We have some custom .cmake scripts not in the official distribution.