Skip to content

Commit 2df8e73

Browse files
committed
fix: mark 3rdparty libraries as system library to disable clang-tidy
1 parent 738b10c commit 2df8e73

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

cmake/FindCatch2.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if (NOT Catch2_FOUND)
99
Catch2
1010
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
1111
GIT_TAG v3.8.0
12+
EXCLUDE_FROM_ALL
13+
SYSTEM
1214
)
1315
FetchContent_MakeAvailable(Catch2)
1416
endif()

cmake/Findbenchmark.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if (NOT benchmark_FOUND)
1111
GIT_REPOSITORY https://github.com/google/benchmark.git
1212
GIT_TAG v1.9.1
1313
EXCLUDE_FROM_ALL
14+
SYSTEM
1415
)
1516
FetchContent_MakeAvailable(benchmark)
1617
endif()

cmake/Findtomlplusplus.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (NOT tomlplusplus_FOUND)
99
GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
1010
GIT_TAG v3.4.0
1111
EXCLUDE_FROM_ALL
12+
SYSTEM
1213
)
1314
FetchContent_MakeAvailable(tomlplusplus)
1415
endif()

cmake/FindxxHash.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if (NOT xxHash_FOUND)
1111
GIT_TAG v0.8.3
1212
SOURCE_SUBDIR cmake_unofficial
1313
EXCLUDE_FROM_ALL
14+
SYSTEM
1415
)
1516
FetchContent_MakeAvailable(xxHash)
1617
endif()

0 commit comments

Comments
 (0)