From 14cce4bde2b3500aac71af937234cbcb5e2fccb7 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319948 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-format/fuzzer/CMakeLists.txt | 1 + tools/clang-fuzzer/CMakeLists.txt | 1 + tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/clang-format/fuzzer/CMakeLists.txt b/tools/clang-format/fuzzer/CMakeLists.txt index 8f777324af..87ae05b62d 100644 --- a/tools/clang-format/fuzzer/CMakeLists.txt +++ b/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/tools/clang-fuzzer/CMakeLists.txt b/tools/clang-fuzzer/CMakeLists.txt index eab921c7d6..b351ec5165 100644 --- a/tools/clang-fuzzer/CMakeLists.txt +++ b/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/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt index 2b0ade4455..910b793e0e 100644 --- a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt +++ b/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) -- 2.40.0