[CMake] FindBoost not finding MinGW libraries

Robert Ramey ramey at rrsd.com
Tue Nov 15 11:39:10 EST 2016


On 11/14/16 5:36 AM, David Demelier wrote:
I spent some time getting CMake to work with with boost libraries.

My conclusions is that FindBoost can be relied upon only for header only 
libraries.  To used build libraries, you'll have to explicitly set the 
specific library variable to the path where the library is located.

For example, in order to link with the boost.filesystem library debug 
version I set

Boost_FILESYSTEM_LIBRARY_DEBUG to

/Users/robertramey/WorkingProjects/modular-boost/stage/lib/Debug/libboost_filesystem-clang-darwin-mt-d-1_62.a

I haven't tried with with shard libraries.

Basically, FindBoost needs some improvement before it can be expected to 
automagically find libraries to link to.

Robert Ramey



More information about the CMake mailing list