Hi All,<div><br></div><div>Any thoughts on this subject? or should I file a bug report and see what happens?</div><div><br></div><div>Thanks,</div><div>Hari</div><div><br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 10:59 AM, Harinarayan Krishnan <span dir="ltr">&lt;<a href="mailto:hkrishnan@lbl.gov">hkrishnan@lbl.gov</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi All,</div><div><br></div>I reran my code using cmake 2.8.4rc and still get the same issue where FIND_PATH is picking the system directory for QT_CORE over my install directory passed through HINTS ${qt_headers}. If this is not related to CMAKE_FIND_FRAMEWORK should I file a bug report on this?<div>


<br>Thanks,<br>Hari<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 10:23 AM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 15.02.11 06:34:07, Harinarayan Krishnan wrote:<br>
&gt; Hi All,<br>
&gt;<br>
</div><div>&gt; Thanks for the help so far, I will check and see if CMake 2.8.4rc has the<br>
&gt; same issue meanwhile I noticed that FIND_PATH seems to have special<br>
&gt; instructions for Darwin machines with the use of CMAKE_FIND_FRAMEWORK on<br>
&gt; page <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_path" target="_blank">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_path</a><br>
&gt;<br>
&gt; The notes are a little confusing: it says CMAKE_FIND_FRAMEWORK defaults to<br>
&gt; &quot;FIRST&quot; on Darwin systems which I can interpret one of two ways.<br>
&gt;<br>
&gt; First, If a standard library and a framework are found in the same search<br>
&gt; order then CMAKE will use this variable to determine which to pick first.<br>
&gt;<br>
&gt; Second, if a framework is found regardless of where it is in the search<br>
&gt; order it will be picked. I suspect the choice is the first one. However, in<br>
&gt; my test I found that if I set CMAKE_FIND_FRAMEWORK to be &quot;LAST&quot; then CMAKE<br>
&gt; picks the proper path. This would make me think the second option is at play<br>
&gt; or it is just pure coincidence that this option happened to give me the<br>
&gt; correct result.<br>
&gt;<br>
&gt; Any of you know what the correct option is? To me it would make sense that<br>
&gt; FIND_PATH honors the search order which would mean that the HINTS option in<br>
&gt; FindQt4 should have higher precedence than the Framework in the<br>
&gt; CMAKE_SYSTEM_FRAMEWORK_PATH.<br>
<br>
</div>This cannot be answered without looking at the source code (as its not<br>
documented properly) to check what exactly the algorithm does. That is<br>
wether it iterates of the individual path in each of the steps and then<br>
checks for framework and afterwards for standard headers in that path or<br>
if it first checks all paths in a step for frameworks and then again<br>
checks all paths for standard headers. Depending on which of the two it<br>
is, the outcome of a find_path may depend on the order of the input<br>
path-variables (like CMAKE_PREFIX_PATH) or not.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
You are the only person to ever get this message.<br>
</font><div><div></div><div>_______________________________________________<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></div></div></div>
</blockquote></div><br></div>