From 5a5c1d1c69c0d60891cfcc910d56a13bc611fde0 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Wed, 6 Dec 2017 19:52:40 +0000 Subject: [PATCH] [CMake] Use PRIVATE in target_link_libraries for fuzzers. Several fuzzers were missed by r319840. llvm-svn: 319948 --- clang-tools-extra/clangd/fuzzer/CMakeLists.txt | 1 + clang/tools/clang-format/fuzzer/CMakeLists.txt | 1 + clang/tools/clang-fuzzer/CMakeLists.txt | 1 + clang/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/fuzzer/CMakeLists.txt b/clang-tools-extra/clangd/fuzzer/CMakeLists.txt index 0451deab14c8..ca76c977451d 100644 --- a/clang-tools-extra/clangd/fuzzer/CMakeLists.txt +++ b/clang-tools-extra/clangd/fuzzer/CMakeLists.txt @@ -12,6 +12,7 @@ add_clang_executable(clangd-fuzzer ) target_link_libraries(clangd-fuzzer + PRIVATE clangBasic clangDaemon clangFormat diff --git a/clang/tools/clang-format/fuzzer/CMakeLists.txt b/clang/tools/clang-format/fuzzer/CMakeLists.txt index 8f777324afdf..87ae05b62d19 100644 --- a/clang/tools/clang-format/fuzzer/CMakeLists.txt +++ b/clang/tools/clang-format/fuzzer/CMakeLists.txt @@ -10,6 +10,7 @@ add_clang_executable(clang-format-fuzzer ) target_link_libraries(clang-format-fuzzer + PRIVATE ${CLANG_FORMAT_LIB_DEPS} ${LLVM_LIB_FUZZING_ENGINE} ) diff --git a/clang/tools/clang-fuzzer/CMakeLists.txt b/clang/tools/clang-fuzzer/CMakeLists.txt index eab921c7d612..b351ec51652d 100644 --- a/clang/tools/clang-fuzzer/CMakeLists.txt +++ b/clang/tools/clang-fuzzer/CMakeLists.txt @@ -48,6 +48,7 @@ if(CLANG_ENABLE_PROTO_FUZZER) ) target_link_libraries(clang-proto-fuzzer + PRIVATE ${ProtobufMutator_LIBRARIES} ${PROTOBUF_LIBRARIES} ${LLVM_LIB_FUZZING_ENGINE} diff --git a/clang/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt b/clang/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt index 2b0ade445564..910b793e0e0d 100644 --- a/clang/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt +++ b/clang/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt @@ -11,4 +11,4 @@ add_clang_library(clangProtoToCXX proto_to_cxx.cpp ) add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp) -target_link_libraries(clang-proto-to-cxx clangProtoToCXX) +target_link_libraries(clang-proto-to-cxx PRIVATE clangProtoToCXX)