Is it in a public repo? Can we just try to repro the "complicated" case here?<br><br><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 11:01 AM, kent williams <span dir="ltr"><<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thanks for getting back to me on this. After my initial post I tried<br>
to come up with some 'cut-down' examples, and the simple cases work.<br>
I'll keep trying to get a version that exhibits this failure.<br>
<br>
This is kind of a worst case for debugging. I have a top level<br>
CMakeLists.txt file that builds ITK. Then, it builds several projects<br>
as ExternalProjects, passing in ITK_DIR in CMAKE_ARGS. It's in that<br>
secondary configure -- the one that make does as part of the build --<br>
where I get a failure.<br>
<div><div></div><div class="h5"><br>
On Tue, Mar 8, 2011 at 7:17 AM, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:<br>
> On 03/07/2011 03:59 PM, kent williams wrote:<br>
>> Looking at the difference between FindITK.cmake in 2.8.3 and 2.8.4 it<br>
>> looks like someone replaced trusting the ITK_DIR variable and using it<br>
>> directly if defined, with<br>
>><br>
>> FIND_PACKAGE(ITK QUIET NO_MODULE<br>
>> NAMES ITK InsightToolkit CONFIGS ITKConfig.cmake)<br>
>><br>
>> Which doesn't work -- it appears to ignore ITK_DIR and doggedly insist<br>
>> that it can't find ITK.<br>
><br>
> The find_package command will use ITK_DIR without searching at all if it is set.<br>
> I can't reproduce your problem. CMake 2.8.4 finds ITK for me in all the cases<br>
> it used to find it plus more. Setting ITK_DIR hands it the answer and it works.<br>
> Please send a complete sample CMakeLists.txt that shows this problem along with<br>
> a listing of the contents of ${ITK_DIR} on your disk.<br>
><br>
> Thanks,<br>
> -Brad<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>