[llvm]Fix build error on Linux: cannot find -lxml2. (#7919)

This commit is contained in:
JackBoosY 2019-09-17 06:13:12 +08:00 committed by Curtis J Bezault
parent 741106fa23
commit 27cee9886a
3 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: llvm
Version: 8.0.0
Version: 8.0.0-1
Homepage: https://llvm.org/
Description: The LLVM Compiler Infrastructure
Build-Depends: atlmfc (windows)

View File

@ -0,0 +1,13 @@
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 900c35e..78fd3cd 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -154,7 +154,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
else()
include_directories(${LIBXML2_INCLUDE_DIR})
endif()
- set(LIBXML2_LIBS "xml2")
+ set(LIBXML2_LIBS ${LIBXML2_LIBRARIES})
endif()
endif()
endif()

View File

@ -31,6 +31,7 @@ vcpkg_apply_patches(
PATCHES
install-cmake-modules-to-share.patch
fix-build-error.patch
fix-linux-build.patch
)
vcpkg_find_acquire_program(PYTHON3)