all repos — mgba @ cc739bb369b981ba1a053417bd5a1e4c981e7bfb

mGBA Game Boy Advance Emulator

CMake: Move epoxy GL defines to the right list (fixes #1792)
Vicki Pfau vi@endrift.com
Fri, 05 Mar 2021 02:15:41 -0800
commit

cc739bb369b981ba1a053417bd5a1e4c981e7bfb

parent

dd1d1a0a9d28d50e96f05539a27cd1b04911458d

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

jump to
M CMakeLists.txtCMakeLists.txt

@@ -716,7 +716,7 @@ endif()

if(USE_EPOXY) list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gl.c ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gles2.c) - add_definitions(-DBUILD_GL -DBUILD_GLES2) + list(APPEND FEATURE_DEFINES BUILD_GL BUILD_GLES2) list(APPEND FEATURES EPOXY) include_directories(AFTER ${EPOXY_INCLUDE_DIRS}) link_directories(${EPOXY_LIBRARY_DIRS})