Boost logo

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"
   _boost_BOOSTIFIED_VERSION ${_boost_VER})
ELSEIF(_boost_VER MATCHES "[0-9]+\\.[0-9]+")
   STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1_\\2"
   _boost_BOOSTIFIED_VERSION ${_boost_VER})

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
boost-1_XX pattern.

    Was the deviation intentional? A bug in the Boost/CMake files?
Help is appreciated.
Mike Jackson mike.jackson_at_[hidden]
BlueQuartz Software
Principal Software Engineer Dayton, Ohio

Boost-cmake list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at