From: James Turner Date: Tue, 17 Mar 2015 23:26:20 +0000 (+0000) Subject: Make flag Mac-specific. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=acd655b37b1da1c0b79d100494ce7ce745ed3440;p=simgear.git Make flag Mac-specific. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 98b9685d..f11c07af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,9 +16,6 @@ include (CheckCXXCompilerFlag) project(SimGear) -# 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") - # read 'version' file into a variable (stripping any newlines or spaces) file(READ version versionFile) string(STRIP ${versionFile} SIMGEAR_VERSION) @@ -174,6 +171,9 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT) if(APPLE) 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() # Somehow this only works if included before searching for Boost...