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