<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Using the include_regular_expression macro&nbsp;made a huge difference. The build time was reduced by more than 50%.<BR>&nbsp;<BR>The regular expression appear to be only&nbsp;applied to part of the&nbsp;dependency file path. So in the case of Boost this works&nbsp;pretty&nbsp;well for us because we use&nbsp;#include &lt;boost/filesystem.hpp&gt; but more difficult&nbsp;to remove qt dependency&nbsp;like&nbsp;#include &lt;QDir&gt;.&nbsp;How do you view adding a feature that&nbsp;allow&nbsp;applying regex to the&nbsp;absolute path? Secondly,&nbsp;the documentation of include_regular_expression&nbsp;should probably mention&nbsp;something about the target string (relative path, not absolute).<BR>&nbsp;<BR>Regards, Lars<br>&nbsp;<BR><div>&gt; Date: Thu, 12 Dec 2013 14:23:53 -0500<br>&gt; From: bill.hoffman@kitware.com<br>&gt; To: laasunde@hotmail.com; cmake@cmake.org<br>&gt; Subject: Re: [CMake] depend.make<br>&gt; <br>&gt; On 12/12/2013 1:07 PM, Lars wrote:<br>&gt; &gt; Building our software using CMake and VS2005 on Windows platform is very<br>&gt; &gt; slow. Debugging this issue I discovered the several of the depent.make<br>&gt; &gt; files are huge. One example is a depent.make file that is roughly 10 MB.<br>&gt; &gt; In this file most of the object files dependent on almost all boost<br>&gt; &gt; header files. I am guessing a huge depent.make file would affect at<br>&gt; &gt; least dependency scanning.<br>&gt; &gt;<br>&gt; &gt; Obviously I do not know how much this affect performance.<br>&gt; &gt;<br>&gt; &gt; Will take a look at ninja.<br>&gt; &gt;<br>&gt; &gt; Any other suggestions?<br>&gt; &gt;<br>&gt; You could do this:<br>&gt; include_regular_expression("^([^b]|b[^o]|bo[^o]|boo[^s]|boos[^t]|boost[^/]).*$")<br>&gt; <br>&gt; Then see if it impacts your performance. I would be interested to here <br>&gt; if it did or did not.<br>&gt; <br>&gt; -Bill<br>&gt; <br></div>                                               </div></body>
</html>