<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks&#8217; a lot!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> David Cole [mailto:david.cole@kitware.com] <br><b>Sent:</b> Monday, January 17, 2011 16:40<br><b>To:</b> Dieter Oberkofler<br><b>Cc:</b> CMake@cmake.org<br><b>Subject:</b> Re: [CMake] Customize dependencies scanned by CMake<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>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 &quot;header files that rarely, if ever, change&quot; 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><o:p></o:p></p><div><p class=MsoNormal>On Sat, Jan 15, 2011 at 7:57 AM, Dieter Oberkofler &lt;<a href="mailto:doberkofler.lists@gmail.com">doberkofler.lists@gmail.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>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 &quot;depend.make&quot; 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 &quot;optimizing&quot; the<br>content of &quot;depend.make&quot; makes the build up to 20 times faster.<br>Why is the /fast option not (at least) as fast as a manually &quot;optimized&quot;<br>&quot;depend.make&quot;?<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><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>