[cmake-developers] [CMake 0012364]: Report compilation line on error

Mantis Bug Tracker mantis at public.kitware.com
Wed Jul 27 15:00:39 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12364 
====================================================================== 
Reported By:                Christopher Sean Morrison
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12364
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2011-07-27 15:00 EDT
Last Modified:              2011-07-27 15:00 EDT
====================================================================== 
Summary:                    Report compilation line on error
Description: 
The vast majority of the time, the simplified "neat" output reporting (e.g.,
during a 'make' target build) from cmake is desirable, nay awesome.

However, on those occasions where the compile fails, seeing the stderr output is
often (if not usually) insufficient.  Of course, "make VERBOSE=1" will give all
the gruesome detail including the compilation line, but I don't want verbose all
the time or for a whole build pass.  I just want the compilation line for the
times the compiler fails.

I'd propose capturing the command entire output and, if the command fails (i.e.,
non-zero exit status or something that would otherwise halt the build), printing
the command followed by the buffered output.  This could be made a feature only
enabled when VERBOSE=0 or something that could be enabled project-wide with a
cmake function if it's undesirable as default behavior.

Thanks for your time and attention.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-27 15:00 Christopher Sean MorrisonNew Issue                             
      
======================================================================




More information about the cmake-developers mailing list