Boost Interest :
Subject: [Boost-cmake] boost 1.41.0-cmake0 and CMake 2.6.4 - The usual, CMake can not find boost.
From: Michael Jackson (mike.jackson_at_[hidden])
Date: 2009-12-04 12:43:42
Pulled the latest boost 1.41.0cmake0, compiled and installed. Then I
tried to have my CMake based project find Boost. As usual, this
failed. Using CMake 2.6.4 currently. Started debugging into the
FindBoost.cmake file and here is what I am finding out:
Of course boost headers are installed into /Users/Shared/Toolkits/
So this piece of code renders that useless:
# Transform 1.35 => 1_35 and 1.36.0 => 1_36_0
IF(_boost_VER MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+")
STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1_\\2_\\3"
ELSEIF(_boost_VER MATCHES "[0-9]+\\.[0-9]+")
STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1_\\2"
This was probably for the older versions of boost? Or maybe the ones
built with bjam? This is the first time actually trying to build Boost
with CMake. Not really a great start. If I look back at boost 1.36,
1.39 and 1.40 all built with BJam the include directory follows the
Was the deviation intentional? A bug in the Boost/CMake files?
Help is appreciated.
Mike Jackson mike.jackson_at_[hidden]
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio