diff --git a/CMakeLists.txt b/CMakeLists.txt index f6a9173b..c5350d52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ if(EMSCRIPTEN) "-s USE_GLFW=3 " "-s USE_ZLIB=1 " "-s ALLOW_MEMORY_GROWTH=1 " + "-s 'EXTRA_EXPORTED_RUNTIME_METHODS=[\"getValue\", \"setValue\"]' " "-s WASM=1" ) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LOVR_EMSCRIPTEN_FLAGS}")