mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
Allow frontends to use different headers for OpenGL declarations (#2102)
This commit is contained in:
@ -237,3 +237,11 @@ if (UNIX AND NOT APPLE)
|
||||
INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (ENABLE_OGLRENDERER)
|
||||
set(MELONDS_GL_HEADER \"frontend/glad/glad.h\" CACHE STRING "Path to a header that contains OpenGL function and type declarations.")
|
||||
|
||||
target_compile_definitions(melonDS PUBLIC OGLRENDERER_ENABLED)
|
||||
target_compile_definitions(melonDS PUBLIC MELONDS_GL_HEADER=${MELONDS_GL_HEADER})
|
||||
target_compile_definitions(core PUBLIC MELONDS_GL_HEADER=${MELONDS_GL_HEADER})
|
||||
endif()
|
Reference in New Issue
Block a user