Skip to content

Commit b769e25

Browse files
committed
disable iwyu and clang-tidy on prometheus-cpp targets
1 parent d6c6d21 commit b769e25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/prometheus-cpp.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ if(NOT prometheus-cpp_FOUND)
4545

4646
# Set the prometheus-cpp_VERSION variable from the git tag.
4747
string(REGEX REPLACE "^v([0-9]+\\.[0-9]+\\.[0-9]+)$" "\\1" prometheus-cpp_VERSION "${prometheus-cpp_GIT_TAG}")
48+
49+
# Disable iwyu and clang-tidy
50+
foreach(_prometheus_target core pull civetweb)
51+
set_target_properties(${_prometheus_target} PROPERTIES CXX_INCLUDE_WHAT_YOU_USE ""
52+
CXX_CLANG_TIDY "")
53+
endforeach()
4854
endif()
4955

5056
if(NOT TARGET prometheus-cpp::core OR

0 commit comments

Comments
 (0)