[CMake] cmake --help-module FindBoost gives older version of boost

Rolf Eike Beer eike at sf-mail.de
Fri Jan 24 07:35:51 EST 2014


Am 24.01.2014 13:25, schrieb Pritesh Acharya:
> Hi,
> I have installed boost 1.55.0 in my Ubuntu 12.04.
> But the Command "cmake --help-module FindBoost" is showing older 
> version
> (1.36.0).
> I checked /usr/share/cmake-2.8/Modules/ and found the file
> "FindBoost.cmake" having 1.36.0 mentioned.
> Is it because of the FindBoost.cmake being old that i'm getting older
> version ?

Since you are not telling us your CMake version I can't say for sure, 
but it may just be that the FindBoost module does not know about the 
newer Boost version.

> how can i update the FindBoost.cmake file so that I get new version ?

set(Boost_ADDITIONAL_VERSIONS 1.55 1.55.0)
find_package(Boost)

Make sure to do that with a clean cache (e.g. new build dir), otherwise 
the result of the previous run will be reused.

Eike


More information about the CMake mailing list