Skip to content

Commit aeaf8a1

Browse files
committed
WASM lib: fix compilation with Emscripten
Set C++ standard based on EMSCRIPTEN condition to C++17. Emscripten 4.0.20 introduced a breaking change where Embind now requires C++17 or newer.
1 parent 6c0273f commit aeaf8a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/slvs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if(ENABLE_PYTHON_LIB)
4444
endif()
4545

4646
if(EMSCRIPTEN)
47+
target_compile_features(slvs-wasm PRIVATE cxx_std_17)
4748
add_executable(slvs-wasm jslib.cpp)
4849
target_link_libraries(slvs-wasm PRIVATE slvs-interface embind)
4950
target_link_options(slvs-wasm PRIVATE

0 commit comments

Comments
 (0)