summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libiio/cmake-fix-libxml2-find-package.patch
blob: 5196508dccd7b6688b501bc9ade6970927c28322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d5313c50..0ef102bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -408,7 +408,7 @@ if (WITH_XML_BACKEND)
 	# So, try first to find the CMake module provided by libxml2 package, then fallback
 	# on the CMake's FindLibXml2.cmake module (which can lack some definition, especially
 	# in static build case).
-	find_package(LibXml2 QUIET NO_MODULE NO_SYSTEM_ENVIRONMENT_PATH)
+	find_package(LibXml2 QUIET MODULE)
 	if(DEFINED LIBXML2_VERSION_STRING)
 		set(LIBXML2_FOUND ON)
 		set(LIBXML2_INCLUDE_DIR ${LIBXML2_INCLUDE_DIRS})