From 3320416b2e22a25da45fda28a7eefbd3e67cc407 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 21 May 2021 15:07:20 -0700 Subject: [PATCH] CMakeLists,emscripten: use EXPORTED_RUNTIME_METHODS rather than EXTRA_EXPORTED_RUNTIME_METHODS. this was deprecated in 2.0.18. quiets a warning: emcc: warning: EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead [-Wdeprecated] https://emscripten.org/docs/introducing_emscripten/release_notes.html?highlight=exported_runtime_methods Change-Id: I3acf22339a64f39a342051841a147744f6af954a --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28ae1e22..efa93ed9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -605,7 +605,7 @@ if(WEBP_BUILD_WEBP_JS) webp_js PROPERTIES LINK_FLAGS "-s WASM=0 \ -s EXPORTED_FUNCTIONS='[\"_WebpToSDL\"]' -s INVOKE_RUN=0 \ - -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'") + -s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'") set_target_properties(webp_js PROPERTIES OUTPUT_NAME webp) target_compile_definitions(webp_js PUBLIC EMSCRIPTEN WEBP_HAVE_SDL) endif() @@ -618,7 +618,7 @@ if(WEBP_BUILD_WEBP_JS) webp_wasm PROPERTIES LINK_FLAGS "-s WASM=1 \ -s EXPORTED_FUNCTIONS='[\"_WebpToSDL\"]' -s INVOKE_RUN=0 \ - -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'") + -s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'") target_compile_definitions(webp_wasm PUBLIC EMSCRIPTEN WEBP_HAVE_SDL) target_compile_definitions(webpdspdecode PUBLIC EMSCRIPTEN)