mirror of https://github.com/mgba-emu/mgba.git
CMake: Fix build on Windows
This commit is contained in:
parent
b8e5b47c80
commit
30a67d5496
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue