<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'>This test has been performed on Windows 7 SP1 (64bit) and using CMake 2.8.12.1 and VS2005 SP1.<BR>&nbsp;<BR>Here is the source code used (which does not use the Boost library).<BR>#include &lt;iostream&gt;<BR>int main(int argc, char **argv)<br>{<br>&nbsp; std::cout &lt;&lt; "Hello world" &lt;&lt; std::endl;<br>&nbsp;<br>&nbsp; return 0;<br>}<BR>&nbsp;<BR>Here is the CMakeLists.txt used which find and include Boost.<BR>CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)<BR>FIND_PACKAGE(Boost 1.47.0 COMPONENTS<br>&nbsp; program_options<br>&nbsp; system<br>&nbsp; regex<br>&nbsp; math_c99)<BR>IF(Boost_FOUND)<br>&nbsp; SET(Boost_INCLUDE_DIRS&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ${Boost_INCLUDE_DIR}/boost/tr1/tr1<br>&nbsp;&nbsp;&nbsp; ${Boost_INCLUDE_DIR})<BR>&nbsp; INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}")<br>ENDIF()<BR>SET(_SOURCES <br>&nbsp; main.cpp <br>)<BR>ADD_EXECUTABLE(Dummy <br>&nbsp; ${_SOURCES} <br>)<BR>TARGET_LINK_LIBRARIES(Dummy <br>&nbsp; ${Boost_LIBRARIES} <br>)<BR>&nbsp;<BR>This configuration compiles and links.<BR>When building the target a depend.make file is generated. Viewing this file I was surprised to discover that main.cpp.obj appears to "depend" on a number of boost files. There are 1200 lines like there;<BR>CMakeFiles\Dummy.dir\main.cpp.obj: ..\main.cpp<br>CMakeFiles\Dummy.dir\main.cpp.obj: c:\Boost_r\1_47_0\include\boost-1_52\boost\aligned_storage.hpp<br>CMakeFiles\Dummy.dir\main.cpp.obj: c:\Boost_r\1_47_0\include\boost-1_52\boost\array.hpp<br>CMakeFiles\Dummy.dir\main.cpp.obj: c:\Boost_r\1_47_0\include\boost-1_52\boost\assert.hpp<BR>&nbsp;<BR>Why does depend.make contain so many dependencies between main.cpp.obj&nbsp;and boost headers?<BR>&nbsp;<BR>                                               </div></body>
</html>