Skip to content

Commit cc2af6c

Browse files
committed
Update CMakeLists.txt
1 parent 26219cb commit cc2af6c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ if(_catch2_inc)
5858
target_include_directories(csv_test SYSTEM PRIVATE ${_catch2_inc})
5959
endif()
6060

61+
# Emscripten: Catch2 uses __COUNTER__ (unsupported in emcc, flagged as C2y extension)
62+
if(EMSCRIPTEN)
63+
target_compile_options(csv_test PRIVATE -Wno-c2y-extensions)
64+
endif()
65+
6166
if(MSVC)
6267
# Workaround to enable debugging unit tests in Visual Studio
6368
add_custom_command(

0 commit comments

Comments
 (0)