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

Tarun Ramakrishna lenkite at gmail.com
Tue Aug 19 19:24:09 EDT 2008


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.

My CMakeLists.txt looks like this:

#begin snippet
include(FindBoost)

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 ?


Any help/tips appreciated!
Thanks,
Tarun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080820/e51add3b/attachment-0001.htm>


More information about the CMake mailing list