[CMake] Less Noisy Makefiles?

David Cole david.cole at kitware.com
Thu Oct 7 17:55:45 EDT 2010


On Thu, Oct 7, 2010 at 5:34 PM, Campbell Barton <ideasman42 at gmail.com>wrote:

> On Thu, Oct 7, 2010 at 8:48 PM, Campbell Barton <ideasman42 at gmail.com>
> wrote:
> > On Thu, Oct 7, 2010 at 10:44 AM, Michael Wild <themiwi at gmail.com> wrote:
> >>
> >> On 7. Oct, 2010, at 11:58 , Campbell Barton wrote:
> >>
> >>> Hi, I was wondering if this is possible or if it would be acceptable
> >>> to disable progress printout.
> >>>
> >>> At the moment building with only minor changes prints a lot of text
> >>> with CMake & Makefiles.
> >>>
> >>> eg:
> >>> [  4%] Built target bf_intern_audaspace
> >>> [  4%] Built target bf_intern_string
> >>> [  6%] Built target bf_intern_ghost
> >>>
> >>> full log.
> >>> http://www.pasteall.org/16053
> >>>
> >>> Setting: SET_PROPERTY(GLOBAL PROPERTY RULE_MESSAGES OFF)
> >>> is no good because I want to see the lines which are running/building,
> >>> just not the progress lines that do nothing (the reverse really).
> >>>
> >>> I found some messages about this but they only refer to RULE_MESSAGES.
> >>>
> >>> This may seem silly but its actually one of the reasons we still have
> >>> hand written makefiles in our project (which Im trying to get replaced
> >>> with cmake).
> >>>
> >>> Would this be acceptable?
> >>>
> >>
> >> what happens if you run "make VERBOSE=1" or enable
> CMAKE_VERBOSE_MAKEFILE?
> >>
> >> Michael
> >>
> >> --
> >> There is always a well-known solution to every human problem -- neat,
> plausible, and wrong.
> >> H. L. Mencken
> >
> > using verbose makefiles it gives a lot of output even when running a
> > build with no changes to any C files.
> > http://www.pasteall.org/16061
> >
> > Im pretty happy with cmake's current output, its just for doing
> > rebuilds during development where only a few files change, the
> > progress gets in the way of seeing output of the files which do
> > rebuild.
> >
> > So I think it would be good to have a RULE_PROGRESS option, since I
> > still want to see RULE_MESSAGES.
>
> Im using CMake from GIT, and IIRC RULE_MESSAGES used to disable
> progress, this link confirms.
> http://www.itk.org/Bug/bug_view_advanced_page.php?bug_id=8726
>
> but at the moment % progress is enabled whatever its set to.
>
> --
> - Campbell
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

According to the last note in bug #8726, you should run cmake with:
-DCMAKE_RULE_MESSAGES=OFF
to turn these things off.

Have you done that? Or have you only tried the RULE_MESSAGES global
property?

I have not looked at the code, but the bug says something different than
what your email says. -D variables and global properties are 2 different
things...

If you use -D to set CMAKE_RULE_MESSAGES to OFF does it actually turn them
off?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101007/799c8e10/attachment.htm>


More information about the CMake mailing list