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