mirror of https://github.com/mgba-emu/mgba.git
CMake: Link with correct OpenGL library (fixes #1872)
This commit is contained in:
parent
d01190bf90
commit
6ca62fae83
1
CHANGES
1
CHANGES
|
@ -53,6 +53,7 @@ Other fixes:
|
||||||
- 3DS: Fix thread cleanup
|
- 3DS: Fix thread cleanup
|
||||||
- All: Improve export headers (fixes mgba.io/i/1738)
|
- All: Improve export headers (fixes mgba.io/i/1738)
|
||||||
- CMake: Fix build with downstream minizip that exports incompatible symbols
|
- CMake: Fix build with downstream minizip that exports incompatible symbols
|
||||||
|
- CMake: Link with correct OpenGL library (fixes mgba.io/i/1872)
|
||||||
- Core: Ensure ELF regions can be written before trying
|
- Core: Ensure ELF regions can be written before trying
|
||||||
- Core: Fix threading improperly setting paused state while interrupted
|
- Core: Fix threading improperly setting paused state while interrupted
|
||||||
- Debugger: Don't skip undefined instructions when debugger attached
|
- Debugger: Don't skip undefined instructions when debugger attached
|
||||||
|
|
|
@ -6,6 +6,7 @@ if(POLICY CMP0025)
|
||||||
endif()
|
endif()
|
||||||
if(POLICY CMP0072)
|
if(POLICY CMP0072)
|
||||||
cmake_policy(SET CMP0072 NEW)
|
cmake_policy(SET CMP0072 NEW)
|
||||||
|
set(OpenGL_GL_PREFERENCE LEGACY)
|
||||||
endif()
|
endif()
|
||||||
project(mGBA)
|
project(mGBA)
|
||||||
set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries")
|
set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries")
|
||||||
|
@ -436,6 +437,8 @@ 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)
|
||||||
|
set(OPENGL_LIBRARY OpenGL::GL)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(NOT BUILD_GL)
|
if(NOT BUILD_GL)
|
||||||
|
|
Loading…
Reference in New Issue