From 3766cdff1f869c01ef4e14048cf47706256b2d62 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 24 May 2018 15:55:01 +0800 Subject: [PATCH] cmake: always turn off bjam debugging output we have 'DH_VERBOSE=1' in debian/rules, which instructs debhelper to pass -DCMAKE_VERBOSE_MAKEFILE=ON to cmake. but the verbose output for building boost does not really help if something goes wrong while building the deb packages. if we do want to enable the verbose output, we can always enable it by passing `-d ' to it. see https://boostorg.github.io/build/manual/develop/index.html#bbv2.overview.invocation.options . Signed-off-by: Kefu Chai --- cmake/modules/BuildBoost.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index d6572115a47..3c6ea55ccb2 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -78,11 +78,8 @@ function(do_build_boost version) message(STATUS "BUILDING Boost Libraries at j ${BOOST_J}") list(APPEND b2 -j${BOOST_J}) endif() - if(CMAKE_VERBOSE_MAKEFILE) - list(APPEND b2 -d1) - else() - list(APPEND b2 -d0) - endif() + # suppress all debugging levels for b2 + list(APPEND b2 -d0) if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) set(toolset gcc) -- 2.47.3