]> granicus.if.org Git - clang/commitdiff
[CMake] Use PRIVATE in target_link_libraries for fuzzers.
authorMatt Morehouse <mascasa@google.com>
Wed, 6 Dec 2017 19:52:40 +0000 (19:52 +0000)
committerMatt Morehouse <mascasa@google.com>
Wed, 6 Dec 2017 19:52:40 +0000 (19:52 +0000)
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
tools/clang-fuzzer/CMakeLists.txt
tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt

index 8f777324afdf33bcc7de75071d65b03d251080d7..87ae05b62d1977716335845e3dbd2f6dbd9170c2 100644 (file)
@@ -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}
   )
index eab921c7d61204ea134196e01287b36314e9230e..b351ec51652de6f833f8ef04a02ad65c860e0507 100644 (file)
@@ -48,6 +48,7 @@ if(CLANG_ENABLE_PROTO_FUZZER)
     )
 
   target_link_libraries(clang-proto-fuzzer
+    PRIVATE
     ${ProtobufMutator_LIBRARIES}
     ${PROTOBUF_LIBRARIES}
     ${LLVM_LIB_FUZZING_ENGINE}
index 2b0ade445564b6b3c28476af91bb61e311204fd6..910b793e0e0d94e6681231af0bd9b84472e82396 100644 (file)
@@ -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)