summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-14 18:30:20 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-14 18:30:20 +0000
commit63cab6c9d2f8c54f599c4b2ec6b2530ca3b585e1 (patch)
treeb8ab84d008cb16b5fa063401b1945391d0b26dbb /cmake
parentb453e16855f347e300f1dc0cd0dfbdd65c27b0d2 (diff)
downloadexternal_llvm-63cab6c9d2f8c54f599c4b2ec6b2530ca3b585e1.zip
external_llvm-63cab6c9d2f8c54f599c4b2ec6b2530ca3b585e1.tar.gz
external_llvm-63cab6c9d2f8c54f599c4b2ec6b2530ca3b585e1.tar.bz2
[CMake] Move libxml2 stuff from clang to llvm/cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index fcd5dd5..274de31 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -294,6 +294,11 @@ else()
set(ENABLE_PIC 0)
endif()
+find_package(LibXml2)
+if (LIBXML2_FOUND)
+ set(CLANG_HAVE_LIBXML 1)
+endif ()
+
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG)