Quieten repeated cmake runs
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 3 Jul 2014 14:30:04 +0000 (16:30 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 9 Jul 2014 06:32:13 +0000 (08:32 +0200)
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

CMakeLists.txt
cmake/FindPandoc.cmake

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)
index 3c8499136c44b9f8488bfe71322e5edbcf297732..3981d59406ede7aaae4181e6e526d7c81af3281e 100644 (file)
@@ -39,8 +39,8 @@
 
 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