diff --git a/llvm/lib/WindowsManifest/CMakeLists.txt b/llvm/lib/WindowsManifest/CMakeLists.txt index 8134ac8c815b44..910132a4c7decf 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)