[CMake] running FIND_PROGRAM twice

Brandon Van Every bvanevery at gmail.com
Mon Jan 14 21:59:34 EST 2008


On Jan 14, 2008 9:14 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>
> No, it is not correct.  Once something is found, it can not be set to
> NOTFOUND by another find command.  If that were true, then cmake would
> keep looking for things over and over.  It is perfectly valid and
> expected to call find_* more than once in a find module.  The first one
> that finds it will stop the searching.

Ok.

>This is all documented in the find_* commands.

I don't think the docs are entirely clear about different invocations
of FIND_PROGRAM that use the same variable.


Cheers,
Brandon Van Every


More information about the CMake mailing list