[CMake] Problem linking boost program_options with Visual Studio 2008

Mateusz Łoskot mateusz at loskot.net
Tue Dec 13 09:28:24 EST 2011


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


More information about the CMake mailing list