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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake