Quieten repeated cmake runs
[alexxy/gromacs.git] / CMakeLists.txt
index b7b8f2785690b550106c22fd9bec403c24b01b8a..85bf5ffd65c662f523d6b97d97b64a4e54fa2dbd 100644 (file)
@@ -448,6 +448,9 @@ include(gmxManageSharedLibraries)
 # tests. This exports LIBXML2_FOUND, which we should not use because
 # it does not tell us that linking will succeed. Instead, we test that
 # next.
+if(DEFINED LIBXML2_LIBRARIES)
+  set(LibXml2_FIND_QUIETLY TRUE)
+endif()
 find_package(LibXml2)
 include(gmxTestLibXml2)
 gmx_test_libxml2(HAVE_LIBXML2)