On 1/14/08, <b class="gmail_sendername">Brandon Van Every</b> &lt;<a href="mailto:bvanevery@gmail.com">bvanevery@gmail.com</a>&gt; wrote:<div><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">bill.hoffman@kitware.com</a>&gt; wrote:<br></blockquote><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><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>