[cmake-developers] [PATCH 1/6] Use find on UNIX for fast executable lookup

Bill Hoffman bill.hoffman at kitware.com
Thu Sep 4 13:26:30 EDT 2014


On 9/4/2014 12:49 PM, Brad King wrote:
> On 09/04/2014 12:43 PM, Adam Strzelecki wrote:
>> Generally specifying UNIX mask for present/missing bits
>
> Rather than trying to do this with file(GLOB), perhaps we should
> consider a file(FIND) command for this purpose.  It could have
> more options, including pattern matching, and eventually
> supersede file(GLOB) with a better signature.
>
>> Yet this requires changes in C++ code that's why I used "find" instead.
>
> That's fine.  If someone adds the functionality later then this
> use case can be ported to it.
>
> -Brad
>
I would be concerned with the portability of the arguments to find. 
How much faster is this?   How hard would it be to change the c++?  I 
have not looked into this myself at all, but the use of an external 
program raises some red flags for me.

-Bill




More information about the cmake-developers mailing list