Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: CMakeLists.txt

Issue 2769743004: Allow disabling libXML in Clang's CMake build (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ce621c04b8a9ddf290b027efb985bd83aa653ff..63a041e48427b0b475e9868c7c8ef7b93baa1abf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -167,10 +167,15 @@ else()
set(BACKEND_PACKAGE_STRING "${PACKAGE_STRING}")
endif()
-find_package(LibXml2)
-if (LIBXML2_FOUND)
- set(CLANG_HAVE_LIBXML 1)
+# @LOCALMOD-BEGIN
+option(CLANG_ENABLE_LIBXML "Enable libXML" ON)
+if (CLANG_ENABLE_LIBXML)
+ find_package(LibXml2)
+ if (LIBXML2_FOUND)
+ set(CLANG_HAVE_LIBXML 1)
+ endif()
endif()
+# @LOCALMOD-END
set(CLANG_RESOURCE_DIR "" CACHE STRING
"Relative directory from the Clang binary to its resource files.")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698