<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 13.12.2013 10:43, Lars wrote:<br>
</div>
<blockquote cite="mid:DUB112-W68E60B4239071223380E63CADF0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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>
</body>
</html>