Skip to content

Commit 16130bb

Browse files
committed
disable iwyu and clang-tidy on the nlohmann_json target
1 parent facaa36 commit 16130bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/nlohmann-json.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ if(NOT nlohmann_json_FOUND)
3434

3535
# Set the nlohmann_json_VERSION variable from the git tag.
3636
string(REGEX REPLACE "^v([0-9]+\\.[0-9]+\\.[0-9]+)$" "\\1" nlohmann_json_VERSION "${nlohmann-json_GIT_TAG}")
37+
38+
#Disable iwyu and clang-tidy
39+
if(TARGET nlohmann_json)
40+
set_target_properties(nlohmann_json PROPERTIES CXX_INCLUDE_WHAT_YOU_USE ""
41+
CXX_CLANG_TIDY "")
42+
endif()
3743
endif()
3844

3945
if(NOT TARGET nlohmann_json::nlohmann_json)

0 commit comments

Comments
 (0)