OSDN Git Service

[cmake] Include LLVM_LIBXML2_ENABLED in LLVMConfig.cmake, PR36006
authorMichal Gorny <mgorny@gentoo.org>
Fri, 19 Jan 2018 17:47:03 +0000 (17:47 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 19 Jan 2018 17:47:03 +0000 (17:47 +0000)
Include the LLVM_LIBXML2_ENABLED cache variable in LLVMConfig.cmake
in order to make it available for other LLVM packages to query. This
is necessary to fix stand-alone testing of LLD.

Differential Revision: https://reviews.llvm.org/D42252

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322973 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMConfig.cmake.in

index 0772016..fe4df52 100644 (file)
@@ -37,6 +37,8 @@ set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
 
 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
 
+set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
+
 set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
 
 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)