[CMake] make VERBOSE=1

Michael Hertling mhertling at online.de
Wed May 18 11:18:38 EDT 2011


On 05/17/2011 05:00 PM, gekso wrote:
> Hi David, try to set ( CMAKE_VERBOSE_MAKEFILE true )

AFAIK, this just means verbose output enabled by default.

> 2011/5/17 David Aldrich <David.Aldrich at emea.nec.com>:
>> Hi
>>
>> I would like to see the exact g++ commands that are invoked by a makefile generated by cmake.  It seems that the usual advice is to use:
>>
>> make VERBOSE=1
>>
>> However, the output is then far more verbose than just the g++ commands.
>>
>> Is there a way to produce less commentary than VERBOSE=1, but more than the default?

You might set CMAKE_RULE_MESSAGES to OFF to prune Make's output a bit,
but if you want to see solely the g++ command lines, you should use
grep & Co. - if possible - in connection with verbose Makefiles.

Regards,

Michael


More information about the CMake mailing list