[CMake] cmake: could NOT find Boost

Mike Ladwig mdladwig at gmail.com
Tue May 4 13:19:00 EDT 2010


The "clean build tree" seems to have been the problem.  Looks as if I needed
to start clean every time I tried a new configuration approach.  Much
thanks!

On Tue, May 4, 2010 at 1:01 PM, S Roderick <kiwi.net at mac.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100504/05401b18/attachment.htm>


More information about the CMake mailing list