Make FindBoost quite
authorRoland Schulz <roland@utk.edu>
Thu, 29 Jan 2015 18:04:52 +0000 (13:04 -0500)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 7 Feb 2015 18:44:57 +0000 (19:44 +0100)
Prevent boost from printing version on each cmake run. Makes
it consistent with other Find usage (xml, z, ...)

Change-Id: Ic1f99865c68222683b993b13b6e545e66bd7f536

CMakeLists.txt

index 89c7354699228445830db665e228d91142b92d7a..eeeb3065bee81674bef08a44a662c921c4a48682 100644 (file)
@@ -472,6 +472,9 @@ endif()
 # Detect boost unless GMX_EXTERNAL_BOOST is explicitly OFF
 # Used for default if GMX_EXTERNAL_BOOST is not defined (first CMake pass)
 if(NOT DEFINED GMX_EXTERNAL_BOOST OR GMX_EXTERNAL_BOOST)
+    if(DEFINED Boost_INCLUDE_DIR)
+        set(Boost_FIND_QUIETLY TRUE)
+    endif()
     find_package(Boost 1.44.0)
     if(Boost_FOUND AND Boost_VERSION VERSION_LESS "104400")
         set(Boost_FOUND FALSE)