[cmake-developers] Introducing: message(DEBUG)

Brad King brad.king at kitware.com
Mon Mar 5 08:53:43 EST 2012


On 3/3/2012 5:25 AM, Rolf Eike Beer wrote:
> +  else if (*i == "DEBUG")
> +    {
...
> +    status = true;

Rather than being a conditional version of STATUS I think full stack
information is useful for debugging.  Add to the cmake::MessageType
enumeration a DEBUG value and teach cmake::IssueMessage to handle it.
The output should look like an error or warning but with "CMake Debug"
as the header instead of "CMake Error" or "CMake Warning".

Once the decision to display the message has a cmListFileBacktrace
instance available for the context then you can have fancier rules
for deciding what messages to display.

-Brad



More information about the cmake-developers mailing list