mirror of https://github.com/mgba-emu/mgba.git
CMake: Fix build on Windows
This commit is contained in:
parent
761667a634
commit
339c0145c9
|
@ -422,7 +422,7 @@ if(BUILD_GL)
|
||||||
find_package(OpenGL QUIET)
|
find_package(OpenGL QUIET)
|
||||||
if(NOT OPENGL_FOUND)
|
if(NOT OPENGL_FOUND)
|
||||||
set(BUILD_GL OFF CACHE BOOL "OpenGL not found" FORCE)
|
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)
|
set(OPENGL_LIBRARY OpenGL::GL)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue