]> git.mxchange.org Git - flightgear.git/commitdiff
Explicit Mac SDK for the moment.
authorJames Turner <zakalawe@mac.com>
Sat, 11 Apr 2015 20:58:55 +0000 (21:58 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 11 Apr 2015 20:58:55 +0000 (21:58 +0100)
CMakeLists.txt

index c443f588e6e2dc618e5277b7fd65df3cd91cf2c4..3dfb9a2a0f51bf62a1dc7b712af84d1d539c0b37 100644 (file)
@@ -14,6 +14,10 @@ if(COMMAND cmake_policy)
    endif()
 endif()
 
+# using 10.7 because boost requires libc++ and 10.6 doesn't include it
+set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
+set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
+
 project(FlightGear)
 
 # We have some custom .cmake scripts not in the official distribution.
@@ -104,14 +108,11 @@ IF(APPLE)
     find_library(CORESERVICES_LIBRARY CoreServices)
     find_library(COCOA_LIBRARY Cocoa)
     list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY})
-
-    # using 10.7 because boost requires libc++ and 10.6 doesn't include it
-    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
        ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
     find_package(Threads REQUIRED)
     find_package(X11 REQUIRED)
-    
+
     set(USE_DBUS_DEFAULT 1)
 
     find_package(UDev)