diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e224e9..d78c906 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)