<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> <BR>Here is the source code used (which does not use the Boost library).<BR>#include <iostream><BR>int main(int argc, char **argv)<br>{<br> std::cout << "Hello world" << std::endl;<br> <br> return 0;<br>}<BR> <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> program_options<br> system<br> regex<br> math_c99)<BR>IF(Boost_FOUND)<br> SET(Boost_INCLUDE_DIRS <br> ${Boost_INCLUDE_DIR}/boost/tr1/tr1<br> ${Boost_INCLUDE_DIR})<BR> INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}")<br>ENDIF()<BR>SET(_SOURCES <br> main.cpp <br>)<BR>ADD_EXECUTABLE(Dummy <br> ${_SOURCES} <br>)<BR>TARGET_LINK_LIBRARIES(Dummy <br> ${Boost_LIBRARIES} <br>)<BR> <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> <BR>Why does depend.make contain so many dependencies between main.cpp.obj and boost headers?<BR> <BR>                                            </div></body>
</html>