[CMake] cmake: could NOT find Boost

S Roderick kiwi.net at mac.com
Tue May 4 13:01:41 EDT 2010


On May 4, 2010, at 12:41 , Mike Ladwig wrote:

> Hi.
> 
> I'm having a problem compiling scantailor on CentOS 5.4.  The version of cmake that comes with CentOS was too old, so I downloaded the current cmake binary, which seems to be working well.
> 
> The problem is that the CentOS version of boost is also out-of-date, so I needed to download and build that, which I did successfully.  I installed the new boost (1.42) in /usr/local and have been unable to get cmake to recognize it.
> 
> I have tried -DBOOST_ROOT=/usr/local/ -DBOOSTROOT=/usr/local/ -DBOOST_INCLUDEDIR=/usr/local/include/ -DBOOST_LIBRARYDIR=/usr/local/lib/ -DBoost_ADDITIONALVERSIONS="1.42.0" and many variations on these.
> 
> Am I missing something, or is cmake just unable to find boost anywhere other than default locations?


Have you tried (in a clean build tree)

export CMAKE_PREFIX_PATH=/usr/local
cmake ...

The above works with MacPorts installed boost v1.42 in /opt/local for Mac OS X.
Stephen


More information about the CMake mailing list