And from the middle of the same text:<br>&nbsp;&nbsp;&nbsp; is created to store the result of this command.&nbsp; If the program is<br>&nbsp;&nbsp;&nbsp; found the result is stored in the variable and the search will not be<br>&nbsp;&nbsp;&nbsp; repeated unless the variable is cleared.&nbsp; If nothing is found, the
<br>&nbsp;&nbsp;&nbsp; result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again<br>&nbsp;&nbsp;&nbsp; the next time FIND_PROGRAM is invoked with the same variable.&nbsp; The<br><br>Score: pretty-clear 2 / not-so-clear 0<br><br><br><div><span class="gmail_quote">
On 1/14/08, <b class="gmail_sendername">David Cole</b> &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q">On 1/14/08, <b class="gmail_sendername">Brandon Van Every</b> &lt;<a href="mailto:bvanevery@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bvanevery@gmail.com</a>&gt; wrote:
</span><div><span class="q"><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Jan 14, 2008 9:14 PM, Bill Hoffman &lt;<a href="mailto:bill.hoffman@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bill.hoffman@kitware.com</a>&gt; wrote:<br></blockquote></span><span class="q">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;This is all documented in the find_* commands.<br><br>I don&#39;t think the docs are entirely clear about different invocations<br>of FIND_PROGRAM that use the same variable.</blockquote></span><div><br>C:\Documents and Settings\David&gt;&quot;C:\Program Files\CMake 
2.4\bin\cmake&quot; --help-command FIND_PROGRAM<br>cmake version 2.4-patch 6<br>&nbsp;<br></div>&lt; most of the documentation omitted for brevity -- except for these last 6 lines: &gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in the locations specified by their environment.&nbsp; Projects may
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; override this behavior by simply calling the command twice:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FIND_PROGRAM(&lt;VAR&gt; NAMES name PATHS paths NO_DEFAULT_PATH)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FIND_PROGRAM(&lt;VAR&gt; NAMES name)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Once one of these calls succeeds the result variable will be set and
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stored in the cache so that neither call will search again.<br><br><br>Last two lines pretty much say the result is stored in the cache and subsequent calls will not search.<br><br><br></div>
</blockquote></div><br>