]> git.mxchange.org Git - simgear.git/commitdiff
On Mac, force setting macon-min-version
authorJames Turner <zakalawe@mac.com>
Tue, 8 Dec 2015 20:42:43 +0000 (20:42 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 8 Dec 2015 20:42:43 +0000 (20:42 +0000)
- the CMake option seems to be erratic, it works locally but not
  on the Jenkins machine for inexplicable reasons.

CMakeLists.txt

index bcfd1830297887713bf42bc4ac67185e19c0e4ae..6db62d7551ca4c2d782e86e7b0aa56b284174766 100644 (file)
@@ -174,6 +174,10 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT)
 
 if(APPLE)
   find_library(COCOA_LIBRARY Cocoa)
+
+# this should be handled by setting CMAKE_OSX_DEPLOYMENT_TARGET
+# but it's not working reliably, so forcing it for now
+  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
 endif()
 
 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR