From: Aaron Ballman Date: Wed, 12 Aug 2015 15:01:15 +0000 (+0000) Subject: The version of libxml2 required by c-index-test must be at least 2.5.3. Considering... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=036bf15759feae823d2d24da0ec3b1be7262fa70;p=clang The version of libxml2 required by c-index-test must be at least 2.5.3. Considering that this version was released in 2003, you might think the check a bit ridiculous. Unfortunately, GnuWin32 ships with libxml2 2.4.12, which was released in 2001. This allows us to have GnuWin32 on the PATH on Windows without causing compilation errors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244751 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 250d66eb16..d808844b14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,7 +168,7 @@ else() set(BACKEND_PACKAGE_STRING "${PACKAGE_STRING}") endif() -find_package(LibXml2) +find_package(LibXml2 2.5.3 QUIET) if (LIBXML2_FOUND) set(CLANG_HAVE_LIBXML 1) endif()