yves Baumes
yves Baumes

Reputation: 9026

How to request CMake to be not verbose?

Every time I launch make (generated from CMake), each build step is introduced with multiple lines formatted this way:

[100%] Built target foobar
Linking CXX executable ../../bin/foobar
make[2]: quittant le répertoire « /home/me/git/master/build/debug »

That goes from 0% up to 100%. So every time I launch make, it outputs a lot of lines. A lot. That's very verbose and warnings get lost in the process.

How can I ask CMake to remove all that, and generate Makefiles that will get make to output only the compiler output?

Upvotes: 1

Views: 799

Answers (1)

virtus
virtus

Reputation: 291

Just do:

make > /dev/null

You still get compiler error messages printed out since they go to stderr.

Upvotes: 2

Related Questions