From: Kefu Chai Date: Thu, 24 May 2018 07:55:01 +0000 (+0800) Subject: cmake: always turn off bjam debugging output X-Git-Tag: v14.0.0~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22204%2Fhead;p=ceph.git 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 --- 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)