[CMake] Use PRIVATE when linking LLVM fuzzers.

More fuzzers missed by r319840.

llvm-svn: 319987
This commit is contained in:
Matt Morehouse 2017-12-06 23:32:46 +00:00
parent afd1b1c989
commit 492a5b4830
1 changed files with 1 additions and 1 deletions

View File

@ -923,7 +923,7 @@ macro(add_llvm_fuzzer name)
if( LLVM_LIB_FUZZING_ENGINE )
set(LLVM_OPTIONAL_SOURCES ${ARG_DUMMY_MAIN})
add_llvm_executable(${name} ${ARG_UNPARSED_ARGUMENTS})
target_link_libraries(${name} ${LLVM_LIB_FUZZING_ENGINE})
target_link_libraries(${name} PRIVATE ${LLVM_LIB_FUZZING_ENGINE})
set_target_properties(${name} PROPERTIES FOLDER "Fuzzers")
elseif( LLVM_USE_SANITIZE_COVERAGE )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")