Provide options to fail without blocking or to block up to a timeout. Provide options to specify the scope containing the lock so it can be released automatically at the end of a function, file, or process. Extend the RunCMake.file test with cases covering the file(LOCK) command usage and error cases.
3 lines
72 B
CMake
3 lines
72 B
CMake
message(STATUS "Lock in subdirectory")
|
|
file(LOCK "${lfile}" GUARD FILE)
|