Skip to content

Commit

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

Expand Down

0 comments on commit 400c67c

Please sign in to comment.