[llvm-commits] [llvm] r170225 - in /llvm/trunk: cmake/config-ix.cmake include/llvm/Config/config.h.cmake
NAKAMURA Takumi
geek4civic at gmail.com
Fri Dec 14 10:30:20 PST 2012
Author: chapuni
Date: Fri Dec 14 12:30:20 2012
New Revision: 170225
URL: http://llvm.org/viewvc/llvm-project?rev=170225&view=rev
Log:
[CMake] Move libxml2 stuff from clang to llvm/cmake.
Modified:
llvm/trunk/cmake/config-ix.cmake
llvm/trunk/include/llvm/Config/config.h.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=170225&r1=170224&r2=170225&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Fri Dec 14 12:30:20 2012
@@ -294,6 +294,11 @@
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)
Modified: llvm/trunk/include/llvm/Config/config.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=170225&r1=170224&r2=170225&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Config/config.h.cmake (original)
+++ llvm/trunk/include/llvm/Config/config.h.cmake Fri Dec 14 12:30:20 2012
@@ -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}"
More information about the llvm-commits
mailing list