forked from OSchip/llvm-project
CMake: Make sure to detect LibXml2 when Clang is built standalone
llvm-svn: 170444
This commit is contained in:
parent
b8d29bf2e4
commit
4d65bbd509
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue