And from the middle of the same text:<br> is created to store the result of this command. If the program is<br> found the result is stored in the variable and the search will not be<br> repeated unless the variable is cleared. If nothing is found, the
<br> result will be <VAR>-NOTFOUND, and the search will be attempted again<br> the next time FIND_PROGRAM is invoked with the same variable. 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> <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> 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> <<a href="mailto:bvanevery@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bvanevery@gmail.com</a>> 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 <<a href="mailto:bill.hoffman@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bill.hoffman@kitware.com</a>> 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;">
>This is all documented in the find_* commands.<br><br>I don'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>"C:\Program Files\CMake
2.4\bin\cmake" --help-command FIND_PROGRAM<br>cmake version 2.4-patch 6<br> <br></div>< most of the documentation omitted for brevity -- except for these last 6 lines: ><br><br> in the locations specified by their environment. Projects may
<br> override this behavior by simply calling the command twice:<br><br> FIND_PROGRAM(<VAR> NAMES name PATHS paths NO_DEFAULT_PATH)<br> FIND_PROGRAM(<VAR> NAMES name)<br><br> Once one of these calls succeeds the result variable will be set and
<br> 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>