Skip to content

Commit ccd7d85

Browse files
authored
Set global C++ standard to C++17 for Emscripten
1 parent 457aec9 commit ccd7d85

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ list(APPEND CMAKE_MODULE_PATH
1515

1616
if(EMSCRIPTEN)
1717
set(CMAKE_CXX_STANDARD 17)
18+
set_property(GLOBAL PROPERTY CXX_STANDARD 17)
1819
else()
1920
set(CMAKE_CXX_STANDARD 11)
2021
endif()

0 commit comments

Comments
 (0)