<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'>Very interesting.<BR>&nbsp;<BR>Found this thread where Brad King is saying more or less the same thing (this is in 2009). Can anyone confirm this is still the case?<br><BR>How can we filter out boost from depend.make? Using <a name="command:include_regular_expression"></a><code><strong>include_regular_expression</strong> only allows files filtering and that does not really help in this case.</code><BR><code></code>&nbsp;<BR><code>Regards,</code><BR><code>Lars</code><BR>&nbsp;<BR><div>&gt; From: marco.clemencic@cern.ch<br>&gt; To: cmake@cmake.org<br>&gt; CC: laasunde@hotmail.com; nilsgladitz@gmail.com<br>&gt; Subject: Re: [CMake] depend.make<br>&gt; Date: Thu, 12 Dec 2013 12:03:06 +0100<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; I cannot find it anymore in the documentation , but I remember to have read <br>&gt; that the dependency scanner of CMake does not take into account the <br>&gt; preprocessor conditionals (#ifdef, etc), thus producing a superset of the <br>&gt; actual dependencies.<br>&gt; It is quite probable that boost/tr1/iostream _may_ include the other headers <br>&gt; under some particular combination of preprocessor macros, so they are not used <br>&gt; at compile time, but they taken into account by CMake.<br>&gt; <br>&gt; Cheers<br>&gt; Marco<br>&gt; <br>&gt; On Thursday 12 December 2013 11:51:52 Lars wrote:<br>&gt; &gt; Thank you for your feedback.<br>&gt; &gt; <br>&gt; &gt; This however only explain part of the issue as far as I can tell. To debug<br>&gt; &gt; the issue I added #pragma message("boost tr1 iostream")<br>&gt; &gt; at the top of the boost/tr1/iostream file. When building the source that<br>&gt; &gt; message is shown in the console windows which then indicate the compiler<br>&gt; &gt; has accessed the file. So far so good. I then did the same "trick" with<br>&gt; &gt; boost/aligned_storage.hpp, boost/array.hpp and boost/assert.hpp which are<br>&gt; &gt; the three first boost reference in depend.make and none of them not show up<br>&gt; &gt; during building.<br>&gt; &gt; <br>&gt; &gt; So why are these files included in the depend.make?<br>&gt; &gt; <br>&gt; &gt; Regards,<br>&gt; &gt; Lars<br>&gt; &gt; Date: Wed, 11 Dec 2013 16:08:28 +0100<br>&gt; &gt; From: nilsgladitz@gmail.com<br>&gt; &gt; To: laasunde@hotmail.com; cmake@cmake.org<br>&gt; &gt; Subject: Re: [CMake] depend.make<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;     On 11.12.2013 12:53, Lars wrote:<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;         Here is the source code used (which does not use the Boost<br>&gt; &gt;         library).<br>&gt; &gt; <br>&gt; &gt;         #include &lt;iostream&gt;<br>&gt; &gt; <br>&gt; &gt;         int main(int argc, char **argv)<br>&gt; &gt; <br>&gt; &gt;         {<br>&gt; &gt; <br>&gt; &gt;           std::cout &lt;&lt; "Hello world" &lt;&lt; std::endl;<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;           return 0;<br>&gt; &gt; <br>&gt; &gt;         }<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;     ${Boost_INCLUDE_DIR}/boost/tr1/tr1 does seem to contain an<br>&gt; &gt;     "iostream" header which your #include &lt;iostream&gt; probably<br>&gt; &gt;     picks up.<br>&gt; &gt; <br>&gt; &gt;     Maybe that further includes the other boost headers?<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;     Nils<br>&gt; <br></div>                                               </div></body>
</html>