all repos — mgba @ 30a67d5496e3d0586654b93e41836bca07da32f7

mGBA Game Boy Advance Emulator

CMake: Fix build on Windows
Vicki Pfau vi@endrift.com
Tue, 24 Nov 2020 01:57:09 -0800
commit

30a67d5496e3d0586654b93e41836bca07da32f7

parent

b8e5b47c80d1780ddb22508fa7a8bb2c5870cec9

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.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()