Index: llvm/trunk/tools/llvm-cfi-verify/lib/CMakeLists.txt =================================================================== --- llvm/trunk/tools/llvm-cfi-verify/lib/CMakeLists.txt +++ llvm/trunk/tools/llvm-cfi-verify/lib/CMakeLists.txt @@ -1,9 +1,12 @@ -add_llvm_library(LLVMCFIVerify +add_library(LLVMCFIVerify + STATIC FileAnalysis.cpp - FileAnalysis.h + FileAnalysis.h) - LINK_COMPONENTS +llvm_update_compile_flags(LLVMCFIVerify) +llvm_map_components_to_libnames(libs MC MCParser Object Support) +target_link_libraries(LLVMCFIVerify ${libs}) Index: llvm/trunk/unittests/tools/llvm-cfi-verify/CMakeLists.txt =================================================================== --- llvm/trunk/unittests/tools/llvm-cfi-verify/CMakeLists.txt +++ llvm/trunk/unittests/tools/llvm-cfi-verify/CMakeLists.txt @@ -4,7 +4,6 @@ AllTargetsDescs AllTargetsDisassemblers AllTargetsInfos - CFIVerify MC MCParser Object @@ -15,4 +14,5 @@ if (NOT x86_idx LESS 0) add_llvm_unittest(CFIVerifyTests FileAnalysis.cpp) + target_link_libraries(CFIVerifyTests LLVMCFIVerify) endif()