cmake: disable webp.js if WEBP_ENABLE_SIMD=1

wasm2js doesn't support SIMD, fixes link error

Change-Id: I3d9d3cb5f29434bf6c0c0029c07540a9768f9b95
This commit is contained in:
James Zern
2020-11-23 18:47:05 -08:00
parent 5abb55823b
commit d2e245ea9e
2 changed files with 22 additions and 12 deletions

View File

@ -78,3 +78,6 @@ Caveat:
https://github.com/kripken/emscripten/issues/3788
Therefore, SSE2 optimization is currently disabled in CMakeLists.txt.
- If WEBP_ENABLE_SIMD is set to 1 the JavaScript version (webp.js) will be
disabled as wasm2js does not support SIMD.