Skip to content

Commit

Permalink
Unconditionally add the common defines to melonDS
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Oct 10, 2023
1 parent 943788b commit 8a100d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/ConfigureDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ if (HAVE_OPENGL OR HAVE_OPENGLES)
target_include_directories(core SYSTEM PRIVATE "${OpenGLES_V32_INCLUDE_DIR}")
endif ()

add_common_definitions(core)

# Ensure that the header that includes GLAD is *excluded* (PLATFORMOGL_H),
# and that melonDS itself uses OpenGL (or OpenGL ES).
target_compile_definitions(core PUBLIC PLATFORMOGL_H OGLRENDERER_ENABLED ENABLE_OGLRENDERER)
Expand All @@ -54,6 +52,8 @@ if (HAVE_OPENGL OR HAVE_OPENGLES)
# TODO: Adapt for GLES2 and GLES3
endif ()

add_common_definitions(core)

if (HAVE_NETWORKING)
# Ensure that the visibility attributes are defined
target_compile_definitions(core PUBLIC BUILDING_LIBSLIRP)
Expand Down

0 comments on commit 8a100d7

Please sign in to comment.