[cfe-commits] r170444 - /cfe/trunk/CMakeLists.txt
Douglas Gregor
dgregor at apple.com
Tue Dec 18 11:39:41 PST 2012
Author: dgregor
Date: Tue Dec 18 13:39:40 2012
New Revision: 170444
URL: http://llvm.org/viewvc/llvm-project?rev=170444&view=rev
Log:
CMake: Make sure to detect LibXml2 when Clang is built standalone
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=170444&r1=170443&r2=170444&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Tue Dec 18 13:39:40 2012
@@ -66,6 +66,11 @@
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
set( CLANG_BUILT_STANDALONE 1 )
+
+ find_package(LibXml2)
+ if (LIBXML2_FOUND)
+ set(CLANG_HAVE_LIBXML 1)
+ endif ()
endif()
set(CLANG_RESOURCE_DIR "" CACHE STRING
More information about the cfe-commits
mailing list