[CMake] Problem with FindBoost.cmake

Robert Dailey rcdailey at gmail.com
Sun May 17 00:26:40 EDT 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090516/d9d01e33/attachment.htm>


More information about the CMake mailing list