On macOS, use default SDK if version 10.9 is not installed.

This commit is contained in:
Charlie Bruce 2020-01-10 20:12:23 +00:00
parent 3011911f80
commit 1a6ce2617a
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ IF(APPLE)
IF(IS_DIRECTORY ${OSX_10_9_SDK_PATH})
SET(CMAKE_OSX_SYSROOT ${OSX_10_9_SDK_PATH})
ELSE()
MESSAGE(WARNING "macOS 10.9 SDK not found, expect badness!")
MESSAGE(WARNING "macOS 10.9 SDK not found - proceeding with the default SDK. This may cause issues!")
SET(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk)
ENDIF()
MESSAGE(STATUS "Using macOS SDK at ${CMAKE_OSX_SYSROOT}")
SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)