[CMake] search order of find_file when multiple names are given
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Dec 18 16:17:32 EST 2009
On Tuesday 15 December 2009, James Zipperer wrote:
> I have a find_file command with multiple names supplied, like the
> following:
>
> find_file(SOMEVAR NAMES name1 name2 name3)
>
> I'm wondering what happens if name1, name2, and name3 all exist in the same
> directory.
I think the order as you listed them will be used.
> Is it guaranteed that find_file will always return the full
> path to name1?
Yes.
Alex
More information about the CMake
mailing list