--- src/util/CMakeLists.txt.orig 2024-06-14 05:59:32 UTC +++ src/util/CMakeLists.txt @@ -114,7 +114,7 @@ if(ENABLE_OPENGL) target_link_libraries(util PRIVATE "opengl32.lib") endif() - if(LINUX OR FREEBSD OR ANDROID) + if(CMAKE_SYSTEM_NAME MATCHES "(Linux|FreeBSD|Android)") target_sources(util PRIVATE opengl_context_egl.cpp opengl_context_egl.h