llvm.org GIT mirror llvm / 72671d6
[CMake] Use PRIVATE when linking LLVM fuzzers. More fuzzers missed by r319840. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319987 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Morehouse 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
922922 if( LLVM_LIB_FUZZING_ENGINE )
923923 set(LLVM_OPTIONAL_SOURCES ${ARG_DUMMY_MAIN})
924924 add_llvm_executable(${name} ${ARG_UNPARSED_ARGUMENTS})
925 target_link_libraries(${name} ${LLVM_LIB_FUZZING_ENGINE})
925 target_link_libraries(${name} PRIVATE ${LLVM_LIB_FUZZING_ENGINE})
926926 set_target_properties(${name} PROPERTIES FOLDER "Fuzzers")
927927 elseif( LLVM_USE_SANITIZE_COVERAGE )
928928 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")