<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'>That sounds like a decent solution from my point of view. <BR> <BR>I will create an issue for this topic.<BR> <BR>Regards,<BR>Lars<br> <BR><div><hr id="stopSpelling">Date: Fri, 13 Dec 2013 10:53:49 +0100<br>From: nilsgladitz@gmail.com<br>To: laasunde@hotmail.com; bill.hoffman@kitware.com; cmake@cmake.org<br>Subject: Re: [CMake] depend.make<br><br>
<div class="ecxmoz-cite-prefix">On 13.12.2013 10:43, Lars wrote:<br>
</div>
<blockquote cite="mid:DUB112-W68E60B4239071223380E63CADF0@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<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>
</div>
</blockquote>
Maybe CMake could filter out includes in system directories (like
gcc -MM does).<br>
System directories in this case could be directories added with e.g.
include_directories(SYSTEM).<br>
<br>
Nils<br></div>                                            </div></body>
</html>