From 5e98d22380d0a19ec11180b34b62587390169624 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Thu, 23 Jan 2020 10:59:03 +0100 Subject: [PATCH] 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 --- ceph.spec.in | 9 +++++++++ 1 file changed, 9 insertions(+) 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" -- 2.39.5