diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-12-18 19:39:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-12-18 19:39:40 +0000 |
commit | 4d65bbd50948c1b10467ede3ea805f438f44f262 (patch) | |
tree | 8e70afddc95e66e306557868735bef8f0d4f61f2 /clang | |
parent | b8d29bf2e41daa0800c9922b1eb59f8ac2efe192 (diff) | |
download | llvm-4d65bbd50948c1b10467ede3ea805f438f44f262.zip llvm-4d65bbd50948c1b10467ede3ea805f438f44f262.tar.gz llvm-4d65bbd50948c1b10467ede3ea805f438f44f262.tar.bz2 |
CMake: Make sure to detect LibXml2 when Clang is built standalone
llvm-svn: 170444
Diffstat (limited to 'clang')
-rw-r--r-- | clang/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index f7099ac..0ad0557 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -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 |