19 Sep
2009
19 Sep
'09
6:04 a.m.
On Fri, Sep 18, 2009 at 8:20 AM, Mikko Vainio
Yes, according to my experience you need Boost_ADDITIONAL_VERSIONS set as you do, and the option -DBOOST_ROOT=/path/to/boost on the command line to cmake. This works for me.
Also, the only libraries that are "found" are ones that are (a) compiled, such as date_time or filesystem, and (b) requested in the find_package command: find_package(Boost 1.40.0 COMPONENTS date_time filesystem system) to link to these you'll need to add: target_link_libraries(foo ${Boost_LIBRARIES}) check the source for FindBoost.cmake in your CMake installation for more information. HTH, Christopher