CMake: Fix build on Windows

This commit is contained in:
Vicki Pfau 2020-11-24 01:57:09 -08:00
parent 761667a634
commit 339c0145c9
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,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()