[CMake] FindBoost problem

Philip Lowman philip at yhbt.com
Wed May 26 14:06:43 EDT 2010


Did you set Boost_ADDITIONAL_VERSIONS?  Check the FindBoost documentation if
you didn't do this.

On Wed, May 26, 2010 at 1:52 PM, Nico Schlömer <nico.schloemer at gmail.com>wrote:

> Hi all,
>
> I'd like to use CMake for an application that I'm developing on an
> Ubuntu machine which needs to link against Boost, i.e., a
> custom-compiled installation at /opt/boost/1.43.0/.
>
> I compiled and installed CMake 2.8.1, FindBoost.cmake comes in handy.
> Ubuntu ships with its own Boost development package (1.40.0) which I
> cannot remove because it's used by other packages. By default, CMake
> finds the stock-Boost (I guess b/c it sits in those default folders),
> so I call cmake with
>
>  cmake -DBOOST_ROOT:PATH=/opt/boost/1.43.0/ /path/to/source/
>
> Boost is found, and the variables are set in CMakeCache.txt, e.g.,
>
>    Boost_INCLUDE_DIR:PATH=/opt/boost/1.43.0/include
>
> I however also notice that the actual libraries are *not* set correctly, as
>
>    Boost_FILESYSTEM_LIBRARY:FILEPATH=/usr/lib/libboost_filesystem-mt.so
>
> This makes the build fail. Setting BOOST_LIBRARYDIR does not help.
>
> Could that be a bug in CMake?
>
> Cheers,
> Nico
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100526/8a7e3c34/attachment.htm>


More information about the CMake mailing list