[CMake] Ninja generator and showIncludes

Ghyslain Leclerc ghleclerc at gmail.com
Thu Jul 13 09:50:56 EDT 2017


Hello.

I have been searching for a way to prevent the Ninja generator from issuing the showIncludes command to cl.

With our update to the latest CMake (3.8.2) on Windows (7 enterprise, at work) with the latest MSVC (2017 community), we now have a ton of messages saying

Note: including file: <file-name-here>

which makes it difficult to see the actual compilation warnings and errors.

Turned to Google and found some information about localization potentially being a problem, so I uninstalled MSVC 2017 which was in the French version and installed the English one. Turns out that only made the include messages English. :)

I searched the documentation for a target property that I could use but did not find anything. I thought of using target compile flag, but not sure how I would remove a flag.

Searched the mailing list for some info, but most of what I have found does not answer my question. For instance :

http://cmake.org/pipermail/cmake-developers/2013-November/020782.html

I also looked in the bug tracker and there does not seem to be any issue relating to that, so my guess is I am doing something wrong.

So if anyone else has had that problem and/or has a solution for me, I'd appreciate any insight.

Thanks.

Ghyslain Leclerc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170713/3eabfdb2/attachment.html>


More information about the CMake mailing list