Revert "[CMake] Use find_dependency in LLVMConfig.cmake"
authorPetr Hosek <phosek@google.com>
Tue, 22 Sep 2020 07:24:15 +0000 (00:24 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 22 Sep 2020 07:24:15 +0000 (00:24 -0700)
This reverts commit 247c4fc50720ed48db2464bbe59839eedbe16794 as it
broke the runtime build.

llvm/cmake/modules/LLVMConfig.cmake.in

index d4c65ef735059a0aefc50693f2eb2b42662df546..d8a511b69fdd6f29fdcfdc68e2b8bbce0ef02a73 100644 (file)
@@ -52,16 +52,14 @@ set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
 
 set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
 
-include(CMakeFindDependencyMacro)
-
 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
 if(LLVM_ENABLE_ZLIB)
-  find_dependency(ZLIB)
+  find_package(ZLIB)
 endif()
 
 set(LLVM_ENABLE_LIBXML2 @LLVM_ENABLE_LIBXML2@)
 if(LLVM_ENABLE_LIBXML2)
-  find_dependency(LibXml2)
+  find_package(LibXml2)
 endif()
 
 set(LLVM_WITH_Z3 @LLVM_WITH_Z3@)