aboutsummaryrefslogtreecommitdiff
path: root/tools/clang-format/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-format/CMakeLists.txt')
-rw-r--r--tools/clang-format/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/clang-format/CMakeLists.txt b/tools/clang-format/CMakeLists.txt
index a13633eaefc4..a295e8cd0b2a 100644
--- a/tools/clang-format/CMakeLists.txt
+++ b/tools/clang-format/CMakeLists.txt
@@ -12,10 +12,11 @@ set(CLANG_FORMAT_LIB_DEPS
)
target_link_libraries(clang-format
+ PRIVATE
${CLANG_FORMAT_LIB_DEPS}
)
-if( LLVM_USE_SANITIZE_COVERAGE )
+if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE )
add_subdirectory(fuzzer)
endif()