Explicit Mac SDK for the moment.

This commit is contained in:
James Turner 2015-04-11 21:58:15 +01:00
parent 089fc5ea0a
commit 686f095f1e

View File

@ -15,6 +15,10 @@ include (CheckLibraryExists)
include (CheckCXXSourceCompiles) include (CheckCXXSourceCompiles)
include (CheckCXXCompilerFlag) include (CheckCXXCompilerFlag)
# 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(SimGear) project(SimGear)
# read 'version' file into a variable (stripping any newlines or spaces) # read 'version' file into a variable (stripping any newlines or spaces)
@ -172,9 +176,6 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT)
if(APPLE) if(APPLE)
find_library(COCOA_LIBRARY Cocoa) find_library(COCOA_LIBRARY Cocoa)
# 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")
endif() endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR