Usually you can get away with deleting just the cached variables that a find module create (i.e. ZLIB_LIBRARY, etc.). Boost is one of the few modules where this doesn't always work because it creates internal cached variables that don't show up in the cache editor.<br>
<br><div class="gmail_quote">On Wed, May 5, 2010 at 9:57 AM, Michael Hertling <span dir="ltr"><<a href="mailto:mhertling@online.de">mhertling@online.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 05/04/2010 07:19 PM, Mike Ladwig wrote:<br>
> The "clean build tree" seems to have been the problem. Looks as if I needed<br>
> to start clean every time I tried a new configuration approach. Much<br>
> thanks!<br>
<br>
</div>Typically, if FIND_PACKAGE() succeeds in locating a package the results<br>
are cached, and if you reconfigure later FIND_PACKAGE() usually doesn't<br>
search again, but reuses the previously found results from the cache.<br>
Therefore, you must ensure that FIND_PACKAGE() is lead to the desired<br>
package right at the first time. If this package is missed you should<br>
actually restart the configuration from within a clean directory, i.e.<br>
without a cache. In general, if you have installed multiple versions<br>
of the same package be particularly careful w.r.t. which of them is<br>
going to be found by FIND_PACKAGE().<br>
<br>
Regards,<br>
<font color="#888888"><br>
Michael<br>
</font><div class="im"><br>
><br>
> On Tue, May 4, 2010 at 1:01 PM, S Roderick <<a href="http://kiwi.net" target="_blank">kiwi.net</a>@<a href="http://mac.com" target="_blank">mac.com</a>> wrote:<br>
><br>
>> On May 4, 2010, at 12:41 , Mike Ladwig wrote:<br>
>><br>
>>> Hi.<br>
>>><br>
>>> I'm having a problem compiling scantailor on CentOS 5.4. The version of<br>
>> cmake that comes with CentOS was too old, so I downloaded the current cmake<br>
>> binary, which seems to be working well.<br>
>>><br>
>>> The problem is that the CentOS version of boost is also out-of-date, so I<br>
>> needed to download and build that, which I did successfully. I installed<br>
>> the new boost (1.42) in /usr/local and have been unable to get cmake to<br>
>> recognize it.<br>
>>><br>
>>> I have tried -DBOOST_ROOT=/usr/local/ -DBOOSTROOT=/usr/local/<br>
>> -DBOOST_INCLUDEDIR=/usr/local/include/ -DBOOST_LIBRARYDIR=/usr/local/lib/<br>
>> -DBoost_ADDITIONALVERSIONS="1.42.0" and many variations on these.<br>
>>><br>
>>> Am I missing something, or is cmake just unable to find boost anywhere<br>
>> other than default locations?<br>
>><br>
>><br>
>> Have you tried (in a clean build tree)<br>
>><br>
>> export CMAKE_PREFIX_PATH=/usr/local<br>
>> cmake ...<br>
>><br>
>> The above works with MacPorts installed boost v1.42 in /opt/local for Mac<br>
>> OS X.<br>
>> Stephen<br>
>><br>
><br>
><br>
><br>
</div><div><div></div><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>