]> git.mxchange.org Git - flightgear.git/commitdiff
Make flag Mac specific.
authorJames Turner <zakalawe@mac.com>
Tue, 17 Mar 2015 23:27:25 +0000 (23:27 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 17 Mar 2015 23:27:25 +0000 (23:27 +0000)
CMakeLists.txt

index 2a7d04fb4a78395c1dc318f8f5057e298d9ff014..884761474c21889fd1221449e9321f6ac8cdd979 100644 (file)
@@ -16,9 +16,6 @@ endif()
 
 project(FlightGear)
 
-# 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")
-
 # We have some custom .cmake scripts not in the official distribution.
 set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
 
@@ -108,6 +105,8 @@ IF(APPLE)
     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")
     set(USE_DBUS_DEFAULT 1)