From 144ec1d71f9e0527d48249c5582e19e468e0b10e Mon Sep 17 00:00:00 2001 From: Amrik Sadhra Date: Tue, 20 Jan 2026 12:34:40 +0000 Subject: [PATCH 1/3] Add Darwin kernel check to bypass AGL linking on MacOS Tahoe * The AGL framework has been removed --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 59f779f6ba07c25da3c564531c153ec834bca7ab Mon Sep 17 00:00:00 2001 From: Amrik Sadhra Date: Wed, 21 Jan 2026 18:25:08 +0000 Subject: [PATCH 2/3] CMake automatically expands variables in if() commands --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d78c906..e5bb5cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,7 +117,7 @@ else() endif() # OS Specific dependencies -if (APPLE AND ${CMAKE_SYSTEM_VERSION} VERSION_LESS "25.0.0") +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) From a3fe23b6892bba38c646c81d6a045e4c75a11b67 Mon Sep 17 00:00:00 2001 From: Amrik Sadhra Date: Wed, 21 Jan 2026 18:28:43 +0000 Subject: [PATCH 3/3] Remove space after if to match formatting in rest of file --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5bb5cf..e41f325 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,7 +117,7 @@ else() endif() # OS Specific dependencies -if (APPLE AND CMAKE_SYSTEM_VERSION VERSION_LESS "25.0.0") +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)