Skip to content

Commit c8dfb02

Browse files
committed
Don't lint files from external plugins being built into Zeek
1 parent e324258 commit c8dfb02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ZeekPluginStatic.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ function (zeek_add_static_plugin ns name)
122122
# Feed into the main Zeek target(s).
123123
zeek_target_link_libraries(${target_name})
124124

125-
# Add IWYU and clang-tidy to the target if enabled.
126-
zeek_target_add_linters(${target_name})
125+
if (NOT ZEEK_BUILDING_EXTRA_PLUGINS)
126+
# Add IWYU and clang-tidy to the target if enabled.
127+
zeek_target_add_linters(${target_name})
128+
endif ()
127129
endfunction ()

0 commit comments

Comments
 (0)