Skip to content

Commit 44f472b

Browse files
committed
Turn off warning in Catch2 and benchmark.
1 parent 3f0eb88 commit 44f472b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ if (NOT has_parent)
2525
add_subdirectory(dependencies/std_module)
2626

2727
add_subdirectory(dependencies/Catch2 EXCLUDE_FROM_ALL)
28+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
29+
target_compile_options(Catch2 PUBLIC
30+
"-Wno-c2y-extensions"
31+
)
32+
endif()
2833

2934
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Disable testing benchmark.")
3035
add_subdirectory(dependencies/benchmark EXCLUDE_FROM_ALL)
@@ -33,6 +38,7 @@ if (NOT has_parent)
3338
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
3439
target_compile_options(benchmark PUBLIC
3540
"-Wno-global-constructors"
41+
"-Wno-c2y-extensions"
3642
)
3743
endif()
3844
endif()

0 commit comments

Comments
 (0)