X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=CMakeLists.txt;h=50d2c10344dcc46fa0e29d2f01f1bfdcc622d3c6;hb=52fd6986f88051ccc00fc2d01529568d79d5a56c;hp=816fa80d9d2c98f1b1046852bd963873bbcab958;hpb=2314ccfe13e5e175763000e4c8ba86be79aa3a97;p=flightgear.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 816fa80d9..50d2c1034 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,11 @@ IF(APPLE) find_library(CORESERVICES_LIBRARY CoreServices) 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 + 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) @@ -156,9 +161,9 @@ endif() option(SIMGEAR_SHARED "Set to ON when SimGear was built as a shared library" OFF) option(LOGGING "Set to ON to build FlightGear with logging support (default)" ON) option(JSBSIM_TERRAIN "Set to ON to build FlightGear with JSBSim terrain handling code" ON) -option(SP_FDMS "Set to ON to build FlightGear with special-purpose FDMs" OFF) -option(ENABLE_UIUC_MODEL "Set to ON to build FlightGear with UIUCModel FDM" OFF) -option(ENABLE_LARCSIM "Set to ON to build FlightGear with LaRCsim FDM" OFF) +option(SP_FDMS "Set to ON to build FlightGear with special-purpose FDMs" ON) +option(ENABLE_UIUC_MODEL "Set to ON to build FlightGear with UIUCModel FDM" ON) +option(ENABLE_LARCSIM "Set to ON to build FlightGear with LaRCsim FDM" ON) option(ENABLE_YASIM "Set to ON to build FlightGear with YASIM FDM (default)" ON) option(ENABLE_JSBSIM "Set to ON to build FlightGear with JSBSim FDM (default)" ON) option(EVENT_INPUT "Set to ON to build FlightGear with event-based Input support" ${EVENT_INPUT_DEFAULT})