> What happens if something else occurs in between that prints > a message?
That's why my solution is completely automatic, does not require any changes in existing modules, and it works as desired so only: -- Doing something -- Doing something - Result That arrive to stdout are compacted to: -- Doing something - Result When anything comes in between both to stdout and stderr then compaction does not occur. Also the preliminary message "-- Doing something" is of course emitted, but cursor waits on end of line instead new line, just in case we get 2nd matching Result line. If next line is anything else then new line gets appended and rest goes as usual. Please try to build this stage branch and try to run cmake agains cmake :) (FYI fixed bug preventing compiling on Linux) --Adam -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers