[CMake] Use PRIVATE in target_link_libraries for fuzzers.

Several fuzzers were missed by r319840.

llvm-svn: 319948
This commit is contained in:
Matt Morehouse 2017-12-06 19:52:40 +00:00
parent 115d99162c
commit 5a5c1d1c69
4 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ add_clang_executable(clangd-fuzzer
) )
target_link_libraries(clangd-fuzzer target_link_libraries(clangd-fuzzer
PRIVATE
clangBasic clangBasic
clangDaemon clangDaemon
clangFormat clangFormat

View File

@ -10,6 +10,7 @@ add_clang_executable(clang-format-fuzzer
) )
target_link_libraries(clang-format-fuzzer target_link_libraries(clang-format-fuzzer
PRIVATE
${CLANG_FORMAT_LIB_DEPS} ${CLANG_FORMAT_LIB_DEPS}
${LLVM_LIB_FUZZING_ENGINE} ${LLVM_LIB_FUZZING_ENGINE}
) )

View File

@ -48,6 +48,7 @@ if(CLANG_ENABLE_PROTO_FUZZER)
) )
target_link_libraries(clang-proto-fuzzer target_link_libraries(clang-proto-fuzzer
PRIVATE
${ProtobufMutator_LIBRARIES} ${ProtobufMutator_LIBRARIES}
${PROTOBUF_LIBRARIES} ${PROTOBUF_LIBRARIES}
${LLVM_LIB_FUZZING_ENGINE} ${LLVM_LIB_FUZZING_ENGINE}

View 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) 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)