We should not hassle the user about optional libraries that were not
found the first time. If the user wants to detect ones found in a
different place, then they can unset the relevant cache variables to
re-trigger detection and/or related output.
Change-Id: I266268dccc46da5b098d3d5640798cbee7ee6fd0
# 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)
include(FindPackageHandleStandardArgs)
-if(Pandoc_FIND_QUIETLY OR DEFINED PANDOC_EXECUTABLE)
- set(PANDOC_FIND_QUIETLY TRUE)
+if(DEFINED PANDOC_EXECUTABLE)
+ set(Pandoc_FIND_QUIETLY TRUE)
endif()
find_program(PANDOC_EXECUTABLE