It's all in the title. The message documentation does not propose any option to do so, but is there really no way to write some text using CMake without having it silently add a newline?
The idea is to print something like "Adding library...", and later print "Done" but keeping both messages on the same line;
You can use CMake's command mode to print without newline:
execute_process(COMMAND ${CMAKE_COMMAND} -E echo_append "Adding library...")
...
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "Done")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With