mirror of
https://github.com/reactos/CMake.git
synced 2025-03-02 17:05:44 +00:00

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.
4 lines
104 B
CMake
4 lines
104 B
CMake
set(tmp "${CMAKE_CURRENT_BINARY_DIR}/temp-directory")
|
|
file(MAKE_DIRECTORY "${tmp}")
|
|
file(LOCK "${tmp}")
|