CMake: Fix build on Windows
Vicki Pfau vi@endrift.com
Tue, 24 Nov 2020 01:57:09 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -437,7 +437,7 @@ if(BUILD_GL)
find_package(OpenGL QUIET) if(NOT OPENGL_FOUND) set(BUILD_GL OFF CACHE BOOL "OpenGL not found" FORCE) - elseif(TARGET OpenGL::GL) + elseif(UNIX AND NOT APPLE AND TARGET OpenGL::GL) set(OPENGL_LIBRARY OpenGL::GL) endif() endif()