[CMake] help with FindBoost.cmake

kdsfinger at gmail.com kdsfinger at gmail.com
Sat Mar 31 08:14:09 EST 2007


On 3/31/07, Filipe Sousa <natros at gmail.com> wrote:
> kdsfinger at gmail.com wrote:
> > hi,
> > I am using cmake and some library of boost on a linux box. When I use
> > the boost::shared_ptr, everything is fine. But when I try to
> > #include <boost/filesystem/operations.hpp>
> > #include <boost/filesystem/path.hpp>,
> > the cmake generates lots of "undefined reference to
> > 'boost::filesystem::...' errors. Is there something wrong with the
> > FindBoost.cmake? Why I still can use part of the boost like
> > boost::shared_ptr? Thanks for help.
> > zl2k
>
> most of boost are header files only, but boost filesystem has it's own
> library that you must link against you program. that's why you have
> undefined references.
>
> Filipe Sousa
>
>
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
>

Could you give me more guidance on how to do that? Do I need to change
the FindBoost.cmake so that let it find the boost/filesystem? Or
should I change the CMakeList.txt? Thanks again.
zl2k


More information about the CMake mailing list