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.") |