See this command:<br><a href="http://cmake.org/cmake/help/cmake-2-8-docs.html#command:include_regular_expression">http://cmake.org/cmake/help/cmake-2-8-docs.html#command:include_regular_expression</a><br><br>If you can match many of the "header files that rarely, if ever, change" with a regular expression based on directory and file name patterns, then you can reduce the number of entries in the generated makefiles significantly.<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Sat, Jan 15, 2011 at 7:57 AM, Dieter Oberkofler <span dir="ltr"><<a href="mailto:doberkofler.lists@gmail.com">doberkofler.lists@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;">I'm using CMake 2.8.3 using makefiles for the OSX and Windows platform.<br>
<br>
I very much like CMake but unfortunately the build performance consistently<br>
causes some problems.<br>
<br>
And the main performance problem is the absolutely correct but painfully<br>
slow dependency checking.<br>
In a large (Qt/C++) project a single source file has over 1500 include<br>
dependencies summing up to a "depend.make" file with several million lines.<br>
Almost all (typically 99%) of the include dependencies are not needed in<br>
real life because they come from Qt or other static frameworks but<br>
dramatically slow down the build process.<br>
<br>
I do know that CMake offers the /fast option but this removes all<br>
dependencies and although it is 3-5 times faster, manually "optimizing" the<br>
content of "depend.make" makes the build up to 20 times faster.<br>
Why is the /fast option not (at least) as fast as a manually "optimized"<br>
"depend.make"?<br>
<br>
Is there a way to:<br>
- customize what includes should be parsed?<br>
- exclude dependency trees?<br>
- limit the recursion level?<br>
<br>
or any other option to solve this problem?<br>
<br>
Thank you!<br>
<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 <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>
</blockquote></div><br>