[cmake-developers] New command 'file(LOCK_DIRECTORY ...)'

Stephen Kelly steveire at gmail.com
Mon Dec 1 15:26:10 EST 2014


Rolf Eike Beer wrote:

> Brad King wrote:
>> On 12/01/2014 11:05 AM, Rolf Eike Beer wrote:
>> > +  char *endp;
>> > +  *value = static_cast<int>(strtol(str, &endp, 10));
>> > +  return (*endp == '\0') && (endp != str);
>> 
>> Fine with me.  Please extend the topic accordingly.  I will squash
>> it in later.
> 
> Done.

Existing uses of strtol also check errno. I guess your implementation should 
too. 

Then the existing users should use this new method.

Thanks,

Steve.



More information about the cmake-developers mailing list