[CMake] Extra blank lines with SEND_ERROR and FATAL_ERROR ?!
Marcel Loose
loose at astron.nl
Mon Oct 5 09:49:01 EDT 2009
Hi all,
When using SEND_ERROR and FATAL_ERROR, extra blank lines are added
between newline-separated strings. I don't really like this. Is it
intentional, or is this a formatting bug?
For example, the CMakeLists.txt file:
cmake_minimum_required(VERSION 2.6)
project(Dummy NONE)
message(STATUS "Line one\nLine two\nLine three")
message(SEND_ERROR "Line one\nLine two\nLine three")
message(FATAL_ERROR "Line one\nLine two\nLine three")
produces the following output on console:
-- Line one
Line two
Line three
CMake Error at CMakeLists.txt:4 (message):
Line one
Line two
Line three
CMake Error at CMakeLists.txt:5 (message):
Line one
Line two
Line three
-- Configuring incomplete, errors occurred!
As can be seen, SEND_ERROR and FATAL_ERROR add extra blank lines.
Best regards,
Marcel Loose.
More information about the CMake
mailing list