multiple pre-build command comments merge into single line of output
Adding a pre-build custom command with AUTOMOC
enabled prepends its COMMENT
string before AUTOMOC
message in output:
$ ../cmake-3.16.20191113-gfd8db8f-win64-x64/bin/cmake.exe --build . --config Release -- -v:m -nologo
executing pre-build command Automatic MOC for target prebuild
pre-build executed
...
Generated vcxproj file contents:
<Message>executing pre-build command Automatic MOC for target prebuild</Message>
^ TAB here
Adding '\n'
after COMMENT only adds another tab between strings.
Tested with Visual Studio 2017.
Minimal example: class.h class.cpp main.cpp CMakeLists.txt