[CMake] message() text shows up as RED in cmake-gui
Bill Hoffman
bill.hoffman at kitware.com
Thu Mar 26 11:29:14 EDT 2009
Robert Dailey wrote:
> It's been my understanding that calling message() without STATUS,
> WARNING, or ERROR was a STATUS by default. Considering that when I use
> both WARNING and ERROR the output looks different. Dialogs will appear
> and such. Are message() and message( STATUS ) not identical? If not,
> what are the differences? Why are they different?
>
There has been no change here in 2.6.3, message has been doing the same
thing since 2.2...
This is better documented in CVS HEAD of CMake:
message
Display a message to the user.
message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]
"message to display" ...)
The optional keyword determines the type of message:
(none) = Important information
STATUS = Incidental information
WARNING = CMake Warning, continue processing
AUTHOR_WARNING = CMake Warning (dev), continue processing
SEND_ERROR = CMake Error, continue but skip generation
FATAL_ERROR = CMake Error, stop all processing
The CMake command-line tool displays STATUS messages on stdout and all
other message types on stderr. The CMake GUI displays all messages in
its log area. The interactive dialogs (ccmake and CMakeSetup) show
STATUS messages one at a time on a status line and other messages in
interactive pop-up boxes.
CMake Warning and Error message text displays using a simple markup
language. Non-indented text is formatted in line-wrapped paragraphs
delimited by newlines. Indented text is considered pre-formatted.
-Bill
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518-371-3971 (phone and fax)
More information about the CMake
mailing list