[Lldb-commits] [PATCH] D56606: [CMake] Export utility targets to the build/install tree depending on LLVM_BUILD/INSTALL_UTILS
Stefan Gränitz via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 11 09:16:52 PST 2019
sgraenitz created this revision.
sgraenitz added reviewers: chapuni, gottesmm, beanz.
Herald added a subscriber: mgorny.
Allow external projects to import test-related targets like FileCheck, count, not etc. and query binary paths, properties, etc.
This would be useful for LLDB, because it reduces the difference between in-tree vs. standalone builds and simplifies CMake logic.
Repository:
rL LLVM
https://reviews.llvm.org/D56606
Files:
cmake/modules/AddLLVM.cmake
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -920,6 +920,9 @@
DEPENDS ${name}
COMPONENT ${name})
endif()
+ set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
+ elseif( LLVM_BUILD_UTILS )
+ set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name})
endif()
endmacro(add_llvm_utility name)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56606.181295.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190111/ae2e0241/attachment.bin>
More information about the lldb-commits
mailing list