One more alternative worth considering here that is cross-platform and doesn't require a wrapper script. (Not sure if it quiets things down enough for you or not, but the latest change to this feature will quiet things a little bit more starting with the upcoming CMake 2.8.4.)<br>
<br>See the RULE_MESSAGES global property:<br><a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_global:RULE_MESSAGES">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_global:RULE_MESSAGES</a><br><br>
And bugs related to it (all of which are closed at this point):<br><a href="http://public.kitware.com/Bug/view.php?id=5323">http://public.kitware.com/Bug/view.php?id=5323</a><br><a href="http://public.kitware.com/Bug/view.php?id=7062">http://public.kitware.com/Bug/view.php?id=7062</a><br>
<a href="http://public.kitware.com/Bug/view.php?id=8726">http://public.kitware.com/Bug/view.php?id=8726</a><br><a href="http://public.kitware.com/Bug/view.php?id=11304">http://public.kitware.com/Bug/view.php?id=11304</a><br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 11:59 PM, Campbell Barton <span dir="ltr"><<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Slightly improved version which treats "Linking" lines separately from<br>
source lines.<br>
and its not messed up by threaded builds.<br>
<div class="im"><br>
---<br>
#!/bin/bash<br>
# filters CMake output to be more like nan-makefiles<br>
<br>
</div>FILTER="^\[ *[0-9]*%] \|^Built target "<br>
make $@ | \<br>
sed -u -e 's/^Linking .*\//Linking /' | \<br>
sed -u -e 's/^.*\// /' | \<br>
<div class="im"> grep --line-buffered -v "$FILTER"<br>
<br>
</div>echo "Build Done"<br>
---<br>
<br>
Output looks like this...<br>
<br>
Linking libbf_intern_audaspace.a<br>
sp_ienv.c.o<br>
binreloc.c.o<br>
sp_preorder.c.o<br>
spanel_bmod.c.o<br>
glew.c.o<br>
MT_ExpMap.cpp.o<br>
Linking libextern_binreloc.a<br>
spanel_dfs.c.o<br>
spivotL.c.o<br>
Linking libge_videotex.a<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Tue, Dec 21, 2010 at 3:04 AM, j s <<a href="mailto:j.s4403@gmail.com">j.s4403@gmail.com</a>> wrote:<br>
> Cool,<br>
><br>
> You might want to put a '^' after each \|, if that is how grep regex handles<br>
> it. I've tended toward egrep which is more perl like when doing more<br>
> complicated expressions. Color is probably lost since it is no longer a<br>
> tty.<br>
><br>
> Juan<br>
><br>
> On Mon, Dec 20, 2010 at 3:56 PM, Campbell Barton <<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>><br>
> wrote:<br>
>><br>
>> @Michael Wild. good point about threaded builds, so I take back the<br>
>> bit about "Entering directory, then filenames only", nevertheless.<br>
>> some way to reduce flooding the console when rebuilding a single file<br>
>> would be much appreciated.<br>
>><br>
>> @Juan, from your suggestion, I now use this.<br>
>><br>
>> ---<br>
>> #!/bin/bash<br>
>> # filters CMake output to be more like nan-makefiles<br>
>><br>
>> FILTER="^Scanning \|Linking \(C\|CXX\) static library \|Built target "<br>
>> make $@ | grep --line-buffered -v "$FILTER" | sed -e 's/^.*\// /'<br>
>> echo "Build Done"<br>
>> ---<br>
>><br>
>> Jesper Eskilson, agree supporting make -s would be good to have.<br>
>><br>
>> On Mon, Dec 20, 2010 at 10:05 AM, Jesper Eskilson<br>
>> <<a href="mailto:jesper.eskilson@iar.com">jesper.eskilson@iar.com</a>> wrote:<br>
>> > On 12/20/2010 01:01 AM, Campbell Barton wrote:<br>
>> >><br>
>> >> Hi, I'm STILL trying to have CMake makefiles replace Blender's hand<br>
>> >> crafted makefiles.<br>
>> >><br>
>> >> Now the main sticking point with 2 other developers is they don't like<br>
>> >> CMakes output, as its overly verbose.<br>
>> >><br>
>> >> I realize CMake doesn't need to bend to the whim of all users but<br>
>> >> wondering if we could have something like RULE_BRIEF_OUTPUT<br>
>> >><br>
>> >> Rather then printing progress and full path for all files it could<br>
>> >> skip percentage and use a relative path for each C file.<br>
>> >><br>
>> >> I can try submitting a patch but would first like to know if this<br>
>> >> would be acceptable.<br>
>> ><br>
>> > I've submitted a bugreport about this:<br>
>> > <a href="http://www.cmake.org/Bug/view.php?id=7062" target="_blank">http://www.cmake.org/Bug/view.php?id=7062</a>. It was submitted almost two<br>
>> > years<br>
>> > ago, so I'm not sure it is getting very much attention by the CMake<br>
>> > people.<br>
>> ><br>
>> > --<br>
>> > Jesper Eskilson<br>
>> > Developer<br>
>> > IAR Systems<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the CMake FAQ at:<br>
>> > <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> - Campbell<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the CMake FAQ at:<br>
>> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">- Campbell<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>