From 974a538e363a0209c755776e3d4c27b9772b1ff8 Mon Sep 17 00:00:00 2001 From: Marc DeGraef Date: Thu, 21 Nov 2024 09:04:29 -0500 Subject: [PATCH] adds Sonoma ro macOS versions --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d09a9c..6dda866 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,11 @@ 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 +135,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. ")