[CMake] How to make the installation less verbose?

Michael Wild themiwi at gmail.com
Mon Apr 4 10:52:07 EDT 2011


On 04/04/2011 04:44 PM, David Cole wrote:
> You didn't miss anything. The code that does this looks like this in
> Source/cmFileCommand.cxx:
> 
>     std::string message = (copy? "Installing: " : "Up-to-date: ");
>     message += toFile;
>     this->Makefile->DisplayStatus(message.c_str(), -1);
> 
> As you can see, it's unconditional, and is always printed as a status
> message. I checked the caller, too, and there is no way to turn it off
> at the present time.
> 
> 
> HTH,
> David
> 
> 
> On Mon, Apr 4, 2011 at 10:16 AM, Pere Mato Vila <Pere.Mato at cern.ch
> <mailto:Pere.Mato at cern.ch>> wrote:
> 
>     Perhaps I missed something trivial but I do not know how to make the
>     installation step less verbose. I get many (thousands for a large
>     project) of informational messages that nothing was needed to be
>     done when making the 'install' target with Unix make.  For example:
> 
>     -- Up-to-date: /build/mato/ROOT/root_cmake/include/TBranch.h
> 
>     Is there a way to remove those and only print the ones that do
>     something? Thanks.

make install | grep -v '^Up-to-date: '

should do the trick...

Michael


More information about the CMake mailing list