[llvm] a9127eb - [llvm] Fix typo for libxml2 detection

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 01:45:49 PDT 2022


Author: Samuel Thibault
Date: 2022-05-17T08:45:31Z
New Revision: a9127eb538947307bcba6be93f26fb97e1d2f117

URL: https://github.com/llvm/llvm-project/commit/a9127eb538947307bcba6be93f26fb97e1d2f117
DIFF: https://github.com/llvm/llvm-project/commit/a9127eb538947307bcba6be93f26fb97e1d2f117.diff

LOG: [llvm] Fix typo for libxml2 detection

This seems to be a copy-paste from the similar zlib detection code.

Patch By: sthibaul

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

Added: 
    

Modified: 
    llvm/lib/WindowsManifest/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/WindowsManifest/CMakeLists.txt b/llvm/lib/WindowsManifest/CMakeLists.txt
index 8134ac8c815b4..910132a4c7dec 100644
--- a/llvm/lib/WindowsManifest/CMakeLists.txt
+++ b/llvm/lib/WindowsManifest/CMakeLists.txt
@@ -26,7 +26,7 @@ if(LLVM_ENABLE_LIBXML2)
     string(TOUPPER ${CMAKE_BUILD_TYPE} build_type)
     get_property(libxml2_library TARGET LibXml2::LibXml2 PROPERTY LOCATION_${build_type})
   endif()
-  if(NOT zlib_library)
+  if(NOT libxml2_library)
     get_property(libxml2_library TARGET LibXml2::LibXml2 PROPERTY LOCATION)
   endif()
   get_library_name(${libxml2_library} libxml2_library)


        


More information about the llvm-commits mailing list