Skip to content

Commit

Permalink
adds Sonoma ro macOS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdegraef committed Nov 21, 2024
1 parent f358d15 commit 974a538
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.\
Expand All @@ -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.
")

Expand Down

0 comments on commit 974a538

Please sign in to comment.