]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: always turn off bjam debugging output 22204/head
authorKefu Chai <kchai@redhat.com>
Thu, 24 May 2018 07:55:01 +0000 (15:55 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 24 May 2018 08:06:09 +0000 (16:06 +0800)
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 <N>' to it. see
https://boostorg.github.io/build/manual/develop/index.html#bbv2.overview.invocation.options
.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildBoost.cmake

index d6572115a47a1fcfa927bc9ed61709d8ae652d4e..3c6ea55ccb2bcd387f0c55c3e14638a659cbd940 100644 (file)
@@ -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)