Fixes to emscripten cmake
This commit is contained in:
1 parent
7af7608f62
commit
6d90d74022
3 files changed
+8
-3
No files matched your search
@@ -2,6 +2,13 @@ if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(EMSCRIPTEN)
|
||||
# Emscripten provides its own self contained SDL setup
|
||||
list(APPEND CLIENT_COMPILE_OPTIONS -sUSE_SDL=2)
|
||||
list(APPEND CLIENT_LINK_OPTIONS -sUSE_SDL=2)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(INTERNAL_SDL_DIR ${SOURCE_DIR}/thirdparty/SDL2-2.32.8)
|
||||
|
||||
include(utils/arch)
|
||||
|
||||
Reference in new issue
Block a user