No, as far as I know you need to specify the components for boost always. I know of some find_boost that just put everything in there when you didn&#39;t name components, but as a rule, just specifiy the components. ;-)<div>
<br><div class="gmail_quote">On Wed, Aug 8, 2012 at 1:29 PM, Sumit Adhikari <span dir="ltr">&lt;<a href="mailto:sumit.adhikari@gmail.com" target="_blank">sumit.adhikari@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the reply. But is this is a Bug ?<div><br></div><div><div><br></div><div>Regards,</div><div>Sumit<div><div class="h5"><br><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk <span dir="ltr">&lt;<a href="mailto:nick@astrant.net" target="_blank">nick@astrant.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Try again with this example:<div><br></div><div><a href="http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake" target="_blank">http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake</a></div>

<div><br></div><div><br><div><div><div><div>On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:</div><br></div></div><blockquote type="cite"><div><div>I am searching boost like as follows :<div><br></div>
<div><div># Boost Library Search</div><div>find_package (Boost)</div><div>if (Boost_FOUND)</div><div>  include_directories(${Boost_INCLUDE_DIRS})</div><div>  link_directories(${Boost_LIBRARY_DIRS})</div>
<div>  set(LIBS ${LIBS} ${Boost_LIBRARIES})</div><div>else()</div><div>   message(FATAL_ERROR &quot;Boost Not Found&quot;)</div><div>endif (Boost_FOUND)</div><div><br></div><div>I see the boost library has been found but include_directories, link_directories and LIBS are not updated. Is this because I do not have boost.pc in my system ?</div>


<div><br></div><div>Any other way to resolve this ?</div><div><br></div><div>Regards,</div><div><br></div>-- <br>Sumit Adhikari,<br>Institute of Computer Technology,<br>Faculty of Electrical Engineering,<br>Vienna University of Technology,<br>


Gußhausstraße 27-29,1040 Vienna<br>
</div></div></div><span><font color="#888888">
--<br><br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>

<br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></font></span></blockquote>

</div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sumit Adhikari,<br>Institute of Computer Technology,<br>Faculty of Electrical Engineering,<br>Vienna University of Technology,<br>Gußhausstraße 27-29,1040 Vienna<br>


</div></div></div></div>
</blockquote></div><br></div>