]> git.mxchange.org Git - flightgear.git/commitdiff
Force 10.7 deployment version on Mac.
authorJames Turner <zakalawe@mac.com>
Mon, 9 Feb 2015 15:11:28 +0000 (15:11 +0000)
committerJames Turner <zakalawe@mac.com>
Mon, 9 Feb 2015 15:11:28 +0000 (15:11 +0000)
CMakeLists.txt

index 5b161e6468f26fc48e12503b55e2330f519d6282..fa8f728b434774319c45ee8bf2b37e6972d47652 100644 (file)
@@ -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.