Console output slows down build process
I'm using cmake version 3.6.2 on Windows.
I recently noticed (while building two projects at the same time) that console output is drastically slowing down the build process (i.e. the output actually appeared character for character with a delay of ~ 100 milliseconds) effectively halting the build process.
Even under normal conditions it makes a huge difference:
As an example when building Inkscape in the end over 3000 files are installed via the install()
command which takes a long time. I compared running
cmake.exe -P cmake_install.cmake
vs. cmake.exe -P cmake_install.cmake > install.log
. First command executes for ~15 seconds outputting a wall of text, second command finishes almost immediately.
I see two things that can be done here
- Speed up console output for cmake (the "real" fix)
- As a workaround; Implement an easy way to silence the informational output of
file(INSTALL ..)
commands as produced byinstall()
commands (as this is probably the most text-intensive part of most compilation runs while usually not prone to errors, i.e. output would not be necessary). If something like that exists please point me kindly into the correct direction as I wasn't able to find a solution without suppressing console output completely.