CMake: Make sure to detect LibXml2 when Clang is built standalone

llvm-svn: 170444
This commit is contained in:
Douglas Gregor 2012-12-18 19:39:40 +00:00
parent b8d29bf2e4
commit 4d65bbd509
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
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