r210308 - Always check for libxml2 in CMake

Alp Toker alp at nuanti.com
Thu Jun 5 22:01:47 PDT 2014


Author: alp
Date: Fri Jun  6 00:01:47 2014
New Revision: 210308

URL: http://llvm.org/viewvc/llvm-project?rev=210308&view=rev
Log:
Always check for libxml2 in CMake

This is clang's business and LLVM will soon be updated not to perform the check
for us.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=210308&r1=210307&r2=210308&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Fri Jun  6 00:01:47 2014
@@ -156,11 +156,11 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
   endif()
 
   set( CLANG_BUILT_STANDALONE 1 )
+endif()
 
-  find_package(LibXml2)
-  if (LIBXML2_FOUND)
-    set(CLANG_HAVE_LIBXML 1)
-  endif ()
+find_package(LibXml2)
+if (LIBXML2_FOUND)
+  set(CLANG_HAVE_LIBXML 1)
 endif()
 
 set(CLANG_RESOURCE_DIR "" CACHE STRING





More information about the cfe-commits mailing list