[PATCH] D90969: Renovate CMake file for the `llvm-cfi-verify` tool

Jameson Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 13:12:36 PST 2020


vtjnash created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
vtjnash requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90969

Files:
  llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt


Index: llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
+++ llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
@@ -1,16 +1,4 @@
-add_library(LLVMCFIVerify
-  STATIC
-  FileAnalysis.cpp
-  FileAnalysis.h
-  GraphBuilder.cpp
-  GraphBuilder.h
-  )
-
-llvm_update_compile_flags(LLVMCFIVerify)
-if (LLVM_LINK_LLVM_DYLIB)
-  set(libs LLVM)
-else()
-  llvm_map_components_to_libnames(libs
+set(LLVM_LINK_COMPONENTS
     DebugInfoDWARF
     MC
     MCParser
@@ -18,6 +6,11 @@
     Support
     Symbolize
     )
-endif()
-target_link_libraries(LLVMCFIVerify ${libs})
-set_target_properties(LLVMCFIVerify PROPERTIES FOLDER "Libraries")
+
+add_llvm_library(LLVMCFIVerify
+  STATIC
+  FileAnalysis.cpp
+  FileAnalysis.h
+  GraphBuilder.cpp
+  GraphBuilder.h
+  )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90969.303533.patch
Type: text/x-patch
Size: 862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201106/4f5ca29b/attachment.bin>


More information about the llvm-commits mailing list