From cmake Mon Aug 27 12:53:42 2012 From: =?ISO-8859-1?Q?Peter_K=FCmmel?= Date: Mon, 27 Aug 2012 12:53:42 +0000 To: cmake Subject: Re: [CMake] Windows Ninja cmcldeps.exe too verbose Message-Id: <503B6DD6.7030109 () gmx ! net> X-MARC-Message: https://marc.info/?l=cmake&m=134607204011173 Great, this regex solution is much better, thanks! I've tested it with the German cl version and it works. I've pushed it to next. Peter On 27.08.2012 09:58, Nils Gladitz wrote: > 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=FCmmel: >> 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 =3D $DEP_FILE >> command =3D "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 > > -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensour= ce/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