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

Matthew Woehlke mw_triad at users.sourceforge.net
Wed Dec 17 13:11:38 EST 2014


On 2014-10-13 10:39, Brad King wrote:
> On 10/10/2014 07:45 AM, Ruslan Baratov wrote:
>> Locking directory is equivalent to locking file `cmake.lock` in 
>> directory "/path/to/shared/directory/":
> 
> I think this can be activated buy a DIRECTORY option.

Why do we need even that? Can't CMake just test if the lock target is a
directory?

p.s. For a lock with no timeout, maybe there can be a built-in timeout
after which CMake displays a message what it's trying to do, so that it
doesn't just hang mysteriously.

-- 
Matthew



More information about the cmake-developers mailing list