From 537401c562b3473178816ee49e09e4a2ab49e061 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Wed, 11 Oct 2017 15:13:53 +0000 Subject: [PATCH] [clang-fuzzer] Fix shared library dependencies. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315463 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-fuzzer/CMakeLists.txt | 1 + tools/clang-fuzzer/handle-cxx/CMakeLists.txt | 3 ++- tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/clang-fuzzer/CMakeLists.txt b/tools/clang-fuzzer/CMakeLists.txt index c76d0a753c..3d612060b1 100644 --- a/tools/clang-fuzzer/CMakeLists.txt +++ b/tools/clang-fuzzer/CMakeLists.txt @@ -37,6 +37,7 @@ if( LLVM_USE_SANITIZE_COVERAGE ) add_clang_executable(clang-proto-fuzzer ExampleClangProtoFuzzer.cpp) target_link_libraries(clang-proto-fuzzer ${ProtobufMutator_LIBRARIES} + ${PROTOBUF_LIBRARIES} clangCXXProto clangHandleCXX clangProtoToCXX diff --git a/tools/clang-fuzzer/handle-cxx/CMakeLists.txt b/tools/clang-fuzzer/handle-cxx/CMakeLists.txt index ba8b9c6521..caf1dba7af 100644 --- a/tools/clang-fuzzer/handle-cxx/CMakeLists.txt +++ b/tools/clang-fuzzer/handle-cxx/CMakeLists.txt @@ -1,9 +1,10 @@ -set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD}) +set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Support) add_clang_library(clangHandleCXX handle_cxx.cpp LINK_LIBS + clangBasic clangCodeGen clangFrontend clangLex diff --git a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt index 36235a584b..2b0ade4455 100644 --- a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt +++ b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt @@ -5,9 +5,9 @@ set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ}) # an executable built from this directory. set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp) -add_clang_library(clangProtoToCXX proto_to_cxx.cpp +add_clang_library(clangProtoToCXX proto_to_cxx.cpp DEPENDS clangCXXProto - LINK_LIBS clangCXXProto + LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES} ) add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp) -- 2.40.0