<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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">http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake</a></div><div><br></div><div><br><div><div>On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>&nbsp; include_directories(${Boost_INCLUDE_DIRS})</div><div>&nbsp; link_directories(${Boost_LIBRARY_DIRS})</div>
<div>&nbsp; set(LIBS ${LIBS} ${Boost_LIBRARIES})</div><div>else()</div><div>&nbsp; &nbsp;message(FATAL_ERROR "Boost Not Found")</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>
--<br><br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></div><br></div></body></html>