[CMake] What about...

James Bigler bigler at cs.utah.edu
Fri May 26 12:38:14 EDT 2006


Filipe Sousa wrote:
> frederic heem wrote:
> 
>>On Friday 26 May 2006 17:52, Craig Bradney wrote:
>>Actually, I wonder why CMAKE_VERBOSE_MAKEFILE  is not set to TRUE by default, 
>>each time, I have to set it manually and I find it quite annoying.
> 
> 
> If CMAKE_VERBOSE_MAKEFILE was set to TRUE by default it would be quite
> annoying to others that like the way it is.
> 
> Add to your CMakeLists.txt SET(CMAKE_VERBOSE_MAKEFILE TRUE)

Setting CMAKE_VERBOSE_MAKEFILE to true in our top level CMakeLists.txt file is 
what we do for our project.  Then if you don't want all the chatter from make, 
you simply add a -s "for silent".  The makefiles this only tell you what it is 
doing "Building YYY.o" or "Linking ZZZ.so" etc..  Setting it up as a cached 
variable will also allow it to be exposed in the configurator (ccmake or what not).

"gmake -s" is your friend.  When you need or want the extra chatter, just remove 
the -s.

James


More information about the CMake mailing list