CMake automatically expands variables in if() commands

This commit is contained in:
Amrik Sadhra 2026-01-21 18:25:08 +00:00
parent 144ec1d71f
commit 59f779f6ba

View File

@ -117,7 +117,7 @@ else()
endif() endif()
# OS Specific dependencies # 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) find_library(AGL_LIBRARY AGL REQUIRED)
list(APPEND LIBRARIES ${AGL_LIBRARY}) list(APPEND LIBRARIES ${AGL_LIBRARY})
elseif(NOT WIN32) elseif(NOT WIN32)