Did you set Boost_ADDITIONAL_VERSIONS? Check the FindBoost documentation if you didn't do this.<div><br><div class="gmail_quote">On Wed, May 26, 2010 at 1:52 PM, Nico Schlömer <span dir="ltr"><<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br>
<br>
I'd like to use CMake for an application that I'm developing on an<br>
Ubuntu machine which needs to link against Boost, i.e., a<br>
custom-compiled installation at /opt/boost/1.43.0/.<br>
<br>
I compiled and installed CMake 2.8.1, FindBoost.cmake comes in handy.<br>
Ubuntu ships with its own Boost development package (1.40.0) which I<br>
cannot remove because it's used by other packages. By default, CMake<br>
finds the stock-Boost (I guess b/c it sits in those default folders),<br>
so I call cmake with<br>
<br>
cmake -DBOOST_ROOT:PATH=/opt/boost/1.43.0/ /path/to/source/<br>
<br>
Boost is found, and the variables are set in CMakeCache.txt, e.g.,<br>
<br>
Boost_INCLUDE_DIR:PATH=/opt/boost/1.43.0/include<br>
<br>
I however also notice that the actual libraries are *not* set correctly, as<br>
<br>
Boost_FILESYSTEM_LIBRARY:FILEPATH=/usr/lib/libboost_filesystem-mt.so<br>
<br>
This makes the build fail. Setting BOOST_LIBRARYDIR does not help.<br>
<br>
Could that be a bug in CMake?<br>
<br>
Cheers,<br>
Nico<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><br>
</blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>
</div>