Skip to content

Commit 5068fc3

Browse files
committedJan 11, 2019
[CMake] Export utility targets to the build/install tree depending on LLVM_BUILD/INSTALL_UTILS
Summary: 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. Reviewers: chapuni, gottesmm, beanz Reviewed By: beanz Subscribers: mgorny, lldb-commits, llvm-commits, #lldb Differential Revision: https://reviews.llvm.org/D56606 llvm-svn: 350959
1 parent db8fac1 commit 5068fc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎llvm/cmake/modules/AddLLVM.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,9 @@ macro(add_llvm_utility name)
920920
DEPENDS ${name}
921921
COMPONENT ${name})
922922
endif()
923+
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
924+
elseif( LLVM_BUILD_UTILS )
925+
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name})
923926
endif()
924927
endmacro(add_llvm_utility name)
925928

0 commit comments

Comments
 (0)
Please sign in to comment.