diff --git a/CMakeLists.txt b/CMakeLists.txt index bed0e1c..e40fc79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,10 @@ if(APPLE) set(OSX_DEPLOYMENT_TARGET "13.0") ENDIF () + IF (DARWIN_VERSION EQUAL 23) # macOS 14.00 Sonoma (Xcode 15.x) + message(STATUS "Found macOS 14.00 Sonoma as the host. Darwin Version:${DARWIN_VERSION}") + set(OSX_DEPLOYMENT_TARGET "14.0") + ENDIF () if("${OSX_SDK}" STREQUAL "NOT-FOUND") message(FATAL_ERROR "This version of macOS (${DARWIN_VERSION}) is not recognized.\ @@ -130,6 +134,7 @@ if(APPLE) (20) macOS 11.00 Big Sur\n\ (21) macOS 12.00 Monterey\n\ (22) macOS 13.00 Ventura\n\ + (23) macOS 14.00 Sonoma\n\ Please edit ${CMAKE_CURRENT_LIST_FILE} and add this version of macOS to the detection logic. ")