diff --git a/CMakeLists.txt b/CMakeLists.txt index 52ec92a517f..54f8cb638fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,7 +395,7 @@ if(APPLE) set(MACOSX_BUNDLE_REQUIRED_PLATFORM IPhoneOS) set_target_properties(${BIN_TARGET} PROPERTIES XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2") set(CMAKE_OSX_DEPLOYMENT_TARGET "9.0") - else() + elseif(DARWIN_MAJOR_VERSION GREATER_EQUAL 16) set(MACOSX_BUNDLE_REQUIRED_PLATFORM Carbon) set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12.0") endif()