Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid the progress messages in CMake

Tags:

cmake

Can I get rid of the CMake progress messages of the type:

[ 1%] make [5]: Entering directory ...
[ 9%] Building CXX object ...

I've tried with setting CMAKE_VERBOSE_MAKEFILE, CMAKE_COLOR_MAKEFILE to OFF, and others, but it never worked. I've found CMAKE_RULE_MESSAGES=OFF here: https://cmake.org/Bug/view.php?id=8726 but didn't work for me. Also adding the function suggested here: tell cmake to be quiet and didn't work for me either.

like image 542
user2487384 Avatar asked Jan 26 '26 00:01

user2487384


1 Answers

Set the global property RULE_MESSAGES to OFF:

set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
like image 166
sakra Avatar answered Jan 27 '26 20:01

sakra