[CMake] Windows Ninja cmcldeps.exe too verbose

Nils Gladitz gladitz at sci-vis.de
Mon Aug 27 03:58:43 EDT 2012


I replaced the five string commands in CMakeCLDeps.cmake with:

     string(REGEX MATCH "\n([^:]*:[^:]*:[ \t]*)" showOut2 "${showOut}")
     set(showOut3 "${CMAKE_MATCH_1}")

Which looks like it would work but I don't know if it is safe to assume 
that the localized messages match as well(?)

Nils

Am 26.08.2012 19:45, schrieb Peter Kümmel:
> On 23.08.2012 08:53, Nils Gladitz wrote:
>> I was using the Intel provided build environment (sets up environment
>> variables and runs cmd.exe) with CC and CXX set to icl which apparently
>> is the cause of the extra verbosity.
>>
>> When I use the same environment without CC and CXX set (which in this
>> case defaults them to cl provided by visual studio 2005) ninja/cmcldeps
>> keeps quiet.
>>
>
> "Note: including file:" is generated by the compiler because of 
> /ShowIncludes.
>
> When cl is used we detect this localized string and suppress the output.
> But it looks like this detection doesn't work for icl.
>
> Could you have a look at "rule CXX_COMPILER" in rules.build and try to
> figure out why it doesn't work for icl?
>
> It should look like this:
>
> rule CXX_COMPILER
>   depfile = $DEP_FILE
>   command = "C:/Program Files (x86)/CMake 2.8/bin/cmcldeps.exe" CXX 
> $in "$DEP_FILE" $out "Note: including file:"
>
>
> Peter
>
>
>> Nils
>>
>> On 08/23/2012 07:47 AM, Bill Hoffman wrote:
>>> On 8/22/2012 5:34 AM, Nils Gladitz wrote:
>>>> I'm trying the Ninja generator on windows with CMake 2.8.9.
>>>>
>>>> When starting a build with "ninja" my console is flooded with messages
>>>> of the form:
>>>> "Note: including file: [...]" which I am guessing are generated by
>>>> cmcldeps(?).
>>>>
>>>> It feels like all that output is slowing down the build considerably
>>>> since the windows console is relatively slow.
>>>> Of course it also makes actually relevant output difficult to spot.
>>>>
>>>> Is there some way to turn the messages off?
>>>>
>>> Strange, I have not seen this at all.  What shell are you using?
>>>
>>> -Bill
>>>
>>> -- 
>>>
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.cmake.org/mailman/listinfo/cmake
>>
>>
> -- 
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list