]> git.mxchange.org Git - flightgear.git/commitdiff
Set min-macos-version for CMake 3.2.1
authorJames Turner <zakalawe@mac.com>
Tue, 17 Mar 2015 16:56:52 +0000 (16:56 +0000)
committerRoland Haeder <roland@mxchange.org>
Sat, 30 Apr 2016 16:09:10 +0000 (18:09 +0200)
CMakeLists.txt

index 50d2c10344dcc46fa0e29d2f01f1bfdcc622d3c6..ab74f68d6f4caecd67a5a3f4240f975049593681 100644 (file)
@@ -109,10 +109,8 @@ IF(APPLE)
     find_library(COCOA_LIBRARY Cocoa)
     list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY})
 
-    # this should be handled by setting CMAKE_OSX_DEPLOYMENT_TARGET
-    # but it's not working reliably, so forcing it for now
+    # 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")
-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
        ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
     find_package(Threads REQUIRED)