From: Nathan Cutler Date: Thu, 23 Jan 2020 09:59:03 +0000 (+0100) Subject: rpm: add cmake_verbose_logging switch X-Git-Tag: v15.1.1~433^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32805%2Fhead;p=ceph.git rpm: add cmake_verbose_logging switch This switch sets CMAKE_VERBOSE_MAKEFILE and causes the CMakeOutput.log and CMakeError.log files to be dumped after cmake execution finishes. Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index eeb88d2b7d6..87f1db42473 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -21,6 +21,7 @@ # bcond syntax! ################################################################################# %bcond_with make_check +%bcond_with cmake_verbose_logging %bcond_without ceph_test_package %ifarch s390 s390x %bcond_with tcmalloc @@ -1187,10 +1188,18 @@ ${CMAKE} .. \ -DWITH_RADOSGW_KAFKA_ENDPOINT=ON \ %else -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF \ +%endif +%if 0%{with cmake_verbose_logging} + -DCMAKE_VERBOSE_MAKEFILE=ON \ %endif -DBOOST_J=$CEPH_SMP_NCPUS \ -DWITH_GRAFANA=ON +%if %{with cmake_verbose_logging} +cat ./CMakeFiles/CMakeOutput.log +cat ./CMakeFiles/CMakeError.log +%endif + make "$CEPH_MFLAGS_JOBS"