Fixing output of new automoc macro

Andreas Pakulat apaku at gmx.de
Wed Jul 4 20:17:50 CEST 2007


On 04.07.07 20:00:00, Matthias Kretz wrote:
> On Wednesday 04 July 2007, Andreas Pakulat wrote:
> > Who cares? The normal cmake output is explicitly short so you're not
> > cluttered with uninteresting details the important thing is that a .moc
> > file is generated. Same thing for .ui files or even compilation of
> > source files. Such extended information can be shown in VERBOSE mode,
> > but IMHO not in standard mode. Its at least two lines in a standard
> > terminal and that is close to unreadable, at least I find that
> > unreadable so the information is useless for me anyway because I don't
> > look at it.
> 
> How about:
> Index: kde4automoc.cmake
> ===================================================================
> --- kde4automoc.cmake   (revision 683192)
> +++ kde4automoc.cmake   (working copy)
> @@ -10,7 +10,11 @@
>     set(_moc ${KDE4_CURRENT_BINARY_DIR}/${_current_MOC})
> 
>     if ("${_moc_source}" IS_NEWER_THAN "${_moc}" OR _force_moc)
> -      message(STATUS "Automoc: Generating ${_moc} from ${_moc_source}")
> +      if($ENV{VERBOSE})
> +         message(STATUS "Automoc: Generating ${_moc} from ${_moc_source}")
> +      else($ENV{VERBOSE})
> +         message(STATUS "Generating ${_current_MOC}")
> +      endif($ENV{VERBOSE})
>        execute_process(COMMAND ${QT_MOC_EXECUTABLE} 

The idea is ok, but does this also work with make VERBOSE=1? Because
thats the "standard" cmake way (AFAIK) of getting verbose output.

Andreas

-- 
Tonight you will pay the wages of sin; Don't forget to leave a tip.


More information about the Kde-buildsystem mailing list