MantisBT - CMake
View Issue Details
0005323CMakeCMakepublic2007-07-10 12:102010-12-15 08:08
Eric Marchand 
Brad King 
highfeaturealways
closedfixed 
 
CMake 2.8.3 
0005323: Disable the progress count
Disable the progress count

During the build, cmake update and displays a progress counter.
I see two drawbacks to this feature.

1) Look and feel.
   Some people - but not all I admit - don't like it.

2) Under clearcase, the targets are systematically rebuilt.
   The feature is implemented by writing and reading into a file along the
   build (CMakeFiles/Progress/). This is a problem when using cmake under the
   clearcase environment with clearmake command instead of make.
   Clearcase includes mechanismes to avoid unecessary rebuild of targets. It
   provides its own file system so it is able to check all the files that have
   been opened during the build of a target; so if one of them has changed
   between two build sessions it re-build the target.

An improvment feature could be to manage an environment variable that disables
this feature. Hereunder is a patch I use to validate it. The variable name is
DISABLE_PROGRESS_COUNT: if it set to a not null value, the feature is disabled.

Eric Marchand
No tags attached.
diff quiet_progress_count.diff (1,250) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1067/quiet_progress_count.diff
diff cmake_progress_count.diff (9,316) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1068/cmake_progress_count.diff
Issue History
2009-06-08 06:08Wojciech MigdaNote Added: 0016650
2009-06-08 06:24Wojciech MigdaNote Added: 0016651
2010-12-14 11:11David ColeAssigned ToKen Martin =>
2010-12-15 06:47David ColeAssigned To => Brad King
2010-12-15 06:47David ColeNote Added: 0024127
2010-12-15 08:07Brad KingNote Added: 0024138
2010-12-15 08:08Brad KingStatusassigned => closed
2010-12-15 08:08Brad KingResolutionopen => fixed
2010-12-15 08:08Brad KingFixed in Version => CMake 2.8.3

Notes
(0008023)
Eric Marchand   
2007-07-11 01:57   
The first patch quiet_progress_count.diff is a work-around for the clearcase problem but it is too dirty for an example.

The second patch (cmake_progress_count.diff) introduces a new cmake variable CMAKE_PROGRESS_COUNT that enables/disable the output of the build progress, its default is ON to keep the same behavior as before.
This patch has been tested on a RedHat 4 (Linux) PC.
(0016650)
Wojciech Migda   
2009-06-08 06:08   
hello all,

when this patch will be included in CMake ? It is quite urgent, since progress indication feature confuses clearmake and when terminated build is restarted everything is being rebuilt from the beginning and CMake is practicaly UNUSABLE with clearmake.
(0016651)
Wojciech Migda   
2009-06-08 06:24   
to be more specific when I run clearmake with the -v option it shows the following:

Cannot reuse "foo.obj" - version mismatch for "CMakeFiles\Progress\count.txt"

I tried adding -O clearmake option but it doesn't help.
(0024127)
David Cole   
2010-12-15 06:47   
Brad, is there another existing way to disable progress reporting at this point?
(0024138)
Brad King   
2010-12-15 08:07   
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_global:RULE_MESSAGES [^]