From: James Turner Date: Tue, 17 Mar 2015 16:56:52 +0000 (+0000) Subject: Set min-macos-version for CMake 3.2.1 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c947d41d8649fc8f9817de6ca367a902cc1fdb5c;p=flightgear.git Set min-macos-version for CMake 3.2.1 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 50d2c1034..ab74f68d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)