CMake execute_process flush
CMake execute_process doesn’t print to stdout until the process ends or flushes the stdout buffer. This is shown by example. The stdout print before flush behavior may be platform-dependent in general, but we observed that CMake didn’t print till flushed.