Skip to content

Commit 3308a96

Browse files
committed
Treat benchmark headers as system headers to avoid warnings
1 parent f089e8d commit 3308a96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ if (NOT has_parent)
2828

2929
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Disable testing benchmark.")
3030
add_subdirectory(dependencies/benchmark EXCLUDE_FROM_ALL)
31+
get_property(benchmark_include_dirs TARGET benchmark PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
32+
set_property(TARGET benchmark PROPERTY INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${benchmark_include_dirs}")
3133
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
3234
target_compile_options(benchmark PUBLIC
3335
"-Wno-global-constructors"
34-
"-Wno-shift-sign-overflow"
3536
)
3637
endif()
3738
endif()

0 commit comments

Comments
 (0)