[CMake] MESSAGE to stderr instead of stdout with cmake: bug ?
bruno raffin
bruno.raffin at imag.fr
Tue Feb 26 04:34:06 EST 2008
Hello,
According to the documentation the following CMakeLists.txt should print
the
test message to stdout and actually it is printed on stderr (using cmake
2.4.8):
PROJECT(TEST)
MESSAGE( "test")
The documentation:
MESSAGE: Display a message to the user.
MESSAGE([SEND_ERROR | STATUS | FATAL_ERROR]
"message to display" ...)
By default the message is displayed in a pop up window (CMakeSetup), or in
the stdout of cmake, or the error section of ccmake. If the first argument
is SEND_ERROR then an error is raised, and the generate phase will be
skipped. If the first argument is FATAL_ERROR, all processing is halted.
If the first argument is STATUS then the message is displayed in the
progress line for the GUI, or with a -- in the command line cmake.
Bruno.
--
Bruno Raffin,
INRIA Research Scientist
Moais project,
LIG (Grenoble Informatics Laboratory)
Email: Bruno.Raffin at imag.fr
Phone: (0)4 76 61 20 65
Web: http://www-id.imag.fr/~raffin/
More information about the CMake
mailing list