Add Darwin kernel check to bypass AGL linking on MacOS Tahoe

* The AGL framework has been removed
This commit is contained in:
Amrik Sadhra 2026-01-20 12:34:40 +00:00
parent 60b9febbde
commit 144ec1d71f

View File

@ -117,7 +117,7 @@ else()
endif()
# OS Specific dependencies
if(APPLE)
if (APPLE AND ${CMAKE_SYSTEM_VERSION} VERSION_LESS "25.0.0")
find_library(AGL_LIBRARY AGL REQUIRED)
list(APPEND LIBRARIES ${AGL_LIBRARY})
elseif(NOT WIN32)