[CMake] find_file with wildcards
Michael Wild
themiwi at gmail.com
Tue Mar 30 10:06:53 EDT 2010
On 30. Mar, 2010, at 15:45 , David Cole wrote:
> Not yet. Good feature request, though.
>
>
> On Mon, Mar 29, 2010 at 2:59 PM, James Bigler <jamesbigler at gmail.com> wrote:
>
>> I've looked at the documentation for find_file, and it seems like I have to
>> specify all possible permutations of the name explicitly. Is there a way to
>> do so with a wild card?
>>
>> find_file(... NAMES somefile_1.*.txt ...)
>>
>> James
I agree, that would be useful. However, I think simple globbing is not very safe, specifying a regular expression should at least be possible.
Michael
More information about the CMake
mailing list