Hi,
So far, on windows, I was using nmake
(using NMake Makefiles
generator) with cl
and make
(using MinGW Makefiles
generator) with gcc
.
But experimenting on parallel build, I realized that using make
achieved a better job than nmake
(using cmake --build . --parallel <#cpu>
).
Thus I wanted to use MinGW Makefiles
generator instead of NMake Makefiles
generator but I observed that cmake
then adds /showIncludes
which is undesired (at least for me).
How can I prevent that? Bonus: is there a way to inactivate showIncludes
, independently of the compiler and build tool used?
Regards,
A.
Show includes is necessary for dependency scanning. It’s how the build system learns what headers should trigger a rebuild. It cannot be turned off.
Hi
I thought it was merely a logging option? It clutters my output with Note: Included file: <whatever>
It’s this logging behavior that I want to suppress.
OK
I read about dependency scanning…
And I feel I’m stuck with that: either I use nmake+cl but with poor parallel build capabilities or I’ve got hard to read output…
shame…
I would consider using Ninja if you desire clarity of build output and fully parallel builds
side-question: does this dependency-scanning works in environment without terminal/output (such as a CI in a runner)?
Regards