[CMake] Newbie: cmake 2.6.1, FindBoost can't find locally compiled and installed Boost 1.36

Andreas Pakulat apaku at gmx.de
Wed Aug 20 04:54:33 EDT 2008


On 20.08.08 04:54:09, Tarun Ramakrishna wrote:
> Hi,
> 
> I am running Ubuntu which already comes with boost 1.34. I downloaded and
> installed (make install'ed into /usr/local/boost) Boost 1.34.

I guess you mean 1.36 in the second line here?

> My CMakeLists.txt looks like this:
> 
> #begin snippet
> include(FindBoost)

Uhm, that one is wrong.

> SET(Boost_USE_STATIC_LIBS ON)
> SET(Boost_USE_MULTITHREAD OFF)
> set(BOOST_ROOT /usr/local/boost)
> 
> find_package(Boost 1.36.0 COMPONENTS test)
> 
> message("Was BOOST FOUND? = ${Boost_FOUND}") // L1
> message("Boost version: ${Boost_VERSION}") // L2
> #end snippet
> 
> The above always prints FALSE and 1034. How do I make it pick up my boost in
> /usr/local/boost ?

One problem could be that 1.36 is not considered greater/equal to
1.36.0. Did you try specifying only 1.36 in the find_package call?

Andreas

-- 
You are destined to become the commandant of the fighting men of the
department of transportation.


More information about the CMake mailing list