[cmake-developers] Introducing: message(DEBUG)

Brad King brad.king at kitware.com
Mon Mar 5 10:54:37 EST 2012


On 3/5/2012 10:33 AM, Eric Noulard wrote:
> 2012/3/5 Brad King<brad.king at kitware.com>:
>> Elsewhere in this thread discussion proposed filters on messages
>> based on their context.  Filters based on the full backtrace
>> should be possible and would give a lot of control.
>
> You mean something like a regex?

I had no particular interface in mind and was just pointing out
what is possible.

> So that if the stacktrace and/or prefix (and/or the whole message)
> matches the regex it is displayed ?

That sounds reasonable.

> It may cost a lot at runtime?

Possibly, but there should be a fast-path if DEBUG messages are
not turned on at all.  Once they are on then the runtime cost
may be worthwhile for such control.

-Brad



More information about the cmake-developers mailing list