| Ah I see. But this is output from CMake not Ninja. CMake configures the build and generates e.g. Makefiles or Ninja build files. CMake-based projects are often built out-of-source (i.e. having a build-directory separate from the source directory) so with your implementation you detect the build-directory (not the usage of Ninja). Yep, I can try to get the log message into the build log. Would it be enough to have it in one of several build files? I.e. adding a file which contains that line to pattern: 'build/build*.log'? Because what I do is like this:
$ mkdir build; cd build
$ cmake -G Ninja ../sources
...
-- Build files have been written to ...
$ ninja
Every command is piped to a log file. |