From fc0c8931ab9bc9abf07fa0f500332996539968ed Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Thu, 29 Jan 2015 13:04:52 -0500 Subject: [PATCH] Make FindBoost quite Prevent boost from printing version on each cmake run. Makes it consistent with other Find usage (xml, z, ...) Change-Id: Ic1f99865c68222683b993b13b6e545e66bd7f536 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89c7354699..eeeb3065be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.22.0