[llvm] r319987 - [CMake] Use PRIVATE when linking LLVM fuzzers.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 15:32:46 PST 2017
Author: morehouse
Date: Wed Dec 6 15:32:46 2017
New Revision: 319987
URL: http://llvm.org/viewvc/llvm-project?rev=319987&view=rev
Log:
[CMake] Use PRIVATE when linking LLVM fuzzers.
More fuzzers missed by r319840.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=319987&r1=319986&r2=319987&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Wed Dec 6 15:32:46 2017
@@ -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")
More information about the llvm-commits
mailing list