]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: add cmake_verbose_logging switch 32805/head
authorNathan Cutler <ncutler@suse.com>
Thu, 23 Jan 2020 09:59:03 +0000 (10:59 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 13 Feb 2020 14:13:24 +0000 (15:13 +0100)
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 <ncutler@suse.com>
ceph.spec.in

index eeb88d2b7d67b0562216a2fa8ede33172ea294ff..87f1db4247375c8c1ad333e3fd57c238e2b796d9 100644 (file)
@@ -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"