From 3defffe969d425b8149f21142903fc9418ea6d0f 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316493 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cfi-verify/CMakeLists.txt | 2 +- unittests/tools/llvm-cfi-verify/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/llvm-cfi-verify/CMakeLists.txt b/tools/llvm-cfi-verify/CMakeLists.txt index ae203e53470..8dc8cb96b6f 100644 --- a/tools/llvm-cfi-verify/CMakeLists.txt +++ b/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/unittests/tools/llvm-cfi-verify/CMakeLists.txt b/unittests/tools/llvm-cfi-verify/CMakeLists.txt index 5d331abd87a..ad3266c2777 100644 --- a/unittests/tools/llvm-cfi-verify/CMakeLists.txt +++ b/unittests/tools/llvm-cfi-verify/CMakeLists.txt @@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS AllTargetsDescs AllTargetsDisassemblers AllTargetsInfos - CFIVerify MC MCParser Object -- 2.50.1