llvm.org GIT mirror llvm / 935d140
[cmake] Create exports for umbrella library targets When using the umbrella llvm-libraries and clang-libraries targets, we should export all library targets, otherwise they'll be part of our distribution but not usable from the CMake package. Differential Revision: https://reviews.llvm.org/D58862 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355354 91177308-0d34-0410-b5e6-96231b3b80d8 Shoaib Meenai 7 months ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
632632 # config file.
633633 if (NOT ARG_BUILDTREE_ONLY AND NOT ARG_MODULE)
634634 set_property( GLOBAL APPEND PROPERTY LLVM_LIBS ${name} )
635 set(in_llvm_libs YES)
635636 endif()
636637
637638 if (ARG_MODULE AND NOT TARGET ${name})
662663 endif()
663664
664665 if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
666 (in_llvm_libs AND "llvm-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS) OR
665667 NOT LLVM_DISTRIBUTION_COMPONENTS)
666668 set(export_to_llvmexports EXPORT LLVMExports)
667669 set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)