[CMake] Problem linking boost program_options with Visual Studio 2008

Mario Pezzoni pezzoni.mario at gmail.com
Tue Dec 13 09:39:02 EST 2011


Yes it works! Sorry for the poor information provided.
Boost_USE_STATIC_LIBS solves the problem.

Thank you very much for your time!
Mario

2011/12/13 Mateusz Łoskot <mateusz at loskot.net>

> 2011/12/13 Mario Pezzoni <pezzoni.mario at gmail.com>:
> > I read this one before but, it is related with dynamic linking, i need
> > static linking.
> > This solution do not works with static linking.
>
> You don't mention in your post how you link.
> Also, your CMakeLists.txt suggests you link default means dynamically
> on Windows.
>
> Try adding Boost_USE_STATIC_LIBS (learn about it from FindBoost.cmake file
> in your CMake installed modules).
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
> Member of ACCU, http://accu.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111213/51672fc0/attachment.htm>


More information about the CMake mailing list