CMake: Fix build on Windows

This commit is contained in:
Vicki Pfau 2020-11-24 01:57:09 -08:00
parent b8e5b47c80
commit 30a67d5496
1 changed files with 1 additions and 1 deletions

View File

@ -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()