forked from OSchip/llvm-project
[CMake] Use PRIVATE when linking LLVM fuzzers.
More fuzzers missed by r319840. llvm-svn: 319987
This commit is contained in:
parent
afd1b1c989
commit
492a5b4830
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue