Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix emscripten link warnings #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ set(OXYGINE_LIBRARY_DIRS

if (FORCE_GLES)
set(OPENGL_LIBRARIES libGLESv2.lib)
endif(FORCE_GLES)
elseif (EMSCRIPTEN)
# Has no OpenGL library to link against, but this string contains "nul"
# producing link warnings.
set(OPENGL_LIBRARIES "")
endif()



Expand All @@ -159,8 +163,10 @@ set(CORE_LIBS


if (OX_USE_SDL2)
set(CORE_LIBS ${CORE_LIBS}
SDL2main SDL2)
if (!EMSCRIPTEN)
set(CORE_LIBS ${CORE_LIBS}
SDL2main SDL2)
endif()
set(OXYGINE_INCLUDE_DIRS ${OXYGINE_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS})
endif(OX_USE_SDL2)

Expand Down