From dabd5be42dd78636babfbd515c33c67a994d52aa Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 24 Oct 2017 20:21:15 +0000 Subject: [PATCH] Fix LLVM_LINK_LLVM_DYLIB=On build of llvm-cfi-verify Subscribers: mgorny, aheejin Differential Revision: https://reviews.llvm.org/D39250 llvm-svn: 316493 --- llvm/tools/llvm-cfi-verify/CMakeLists.txt | 2 +- llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/tools/llvm-cfi-verify/CMakeLists.txt b/llvm/tools/llvm-cfi-verify/CMakeLists.txt index ae203e5..8dc8cb9 100644 --- a/llvm/tools/llvm-cfi-verify/CMakeLists.txt +++ b/llvm/tools/llvm-cfi-verify/CMakeLists.txt @@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS AllTargetsDescs AllTargetsDisassemblers AllTargetsInfos - CFIVerify MC MCParser Object @@ -15,3 +14,4 @@ add_llvm_tool(llvm-cfi-verify llvm-cfi-verify.cpp) add_subdirectory(lib) +target_link_libraries(llvm-cfi-verify LLVMCFIVerify) diff --git a/llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt b/llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt index 5d331abd..ad3266c 100644 --- a/llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt +++ b/llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt @@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS AllTargetsDescs AllTargetsDisassemblers AllTargetsInfos - CFIVerify MC MCParser Object -- 2.7.4