Closed robnagler closed 5 years ago
Hi Rob,
My typical invocation of make
with CMake projects looks something like this:
make -j $(nproc) || make VERBOSE=1
Setting VERBOSE=1 will show you the underlying commands that the makefile is executing to build the project, and the error will be the most recent output on the terminal.
If you really want to disable the progress messages, that is controlled by a global property, RULE_MESSAGES
that defaults to ON
. You can run CMake with the additional flag -DCMAKE_RULE_MESSAGES:BOOL=OFF
which will disable these progress messages.
As far as the compiler warning messages they are useful for identifying usage of deprecated language features and suspicious usage, but those are controlled by the -Wall
compiler flag passed to GFortran. You can remove it from the top level CMakeLists.txt
. In the future work we can improve how compilation options are handled.
Thanks @zbeekman! Just what I needed.
Is it possible to reduce the number of warnings when compiling zgoubi? Also, is there a way to get cmake to stop outputting incorrect and annoying percentage lines? It makes it hard to debug real problems.