[CMake] Move libxml2 stuff from clang to llvm/cmake.

llvm-svn: 170225
This commit is contained in:
NAKAMURA Takumi 2012-12-14 18:30:20 +00:00
parent c895316923
commit bdad03688b
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -6,6 +6,9 @@
/* Bug report URL. */
#define BUG_REPORT_URL "${BUG_REPORT_URL}"
/* Define if we have libxml2 */
#cmakedefine CLANG_HAVE_LIBXML ${CLANG_HAVE_LIBXML}
/* Relative directory for resource files */
#define CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR}"