[CMake] Problem with FindBoost.cmake

Philip Lowman philip at yhbt.com
Sun May 17 13:16:06 EDT 2009


On Sun, May 17, 2009 at 12:26 AM, Robert Dailey <rcdailey at gmail.com> wrote:

> Hi,
> I have built Boost 1.39 on Windows with static libraries, and they are
> named like so:
>
> libboost_filesystem-mt.lib
>
> When I try to do this:
>
> find_package( Boost REQUIRED COMPONENTS filesystem )
>
> I get an error saying it could not find boost_filesystem. If I rename the
> above library and remove the 'lib' prefix, so it is just
> "boost_filesystem-mt.lib", it finds it. Does the FindBoost.cmake module not
> support the lib prefix on Windows? This might be an inconsistency on Boost's
> part.
>

Have you set(Boost_USE_STATIC_LIBS ON)?

This might be related to a post a while back which never was fully resolved
involving FindBoost and static libs / dynamic stdlib vs. static libs /
static stdlib.

Also, which version of FindBoost are you using?

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090517/0724d9bc/attachment.htm>


More information about the CMake mailing list