Skip to content

Commit 31e0fdc

Browse files
Merge pull request #140 from berinhardt/CLEANUP/Emscripten_warnings_on_cmake
Cleanup Emscripten warnings
2 parents 44eec70 + 8d59fcd commit 31e0fdc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ set(OXYGINE_LIBRARY_DIRS
145145

146146
if (FORCE_GLES)
147147
set(OPENGL_LIBRARIES libGLESv2.lib)
148+
else ()
149+
set(OPENGL_LIBRARIES "")
148150
endif(FORCE_GLES)
149151

150152

@@ -159,8 +161,10 @@ set(CORE_LIBS
159161

160162

161163
if (OX_USE_SDL2)
162-
set(CORE_LIBS ${CORE_LIBS}
163-
SDL2main SDL2)
164+
if(!EMSCRIPTEN)
165+
set(CORE_LIBS ${CORE_LIBS}
166+
SDL2main SDL2)
167+
endif(!EMSCRIPTEN)
164168
set(OXYGINE_INCLUDE_DIRS ${OXYGINE_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS})
165169
endif(OX_USE_SDL2)
166170

0 commit comments

Comments
 (0)