You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
225 B
7 lines
225 B
10 years ago
|
set(lfile "${CMAKE_CURRENT_BINARY_DIR}/file-to-lock")
|
||
|
FILE(WRITE "${lfile}" "")
|
||
|
|
||
|
# Try to lock file '${lfile}/cmake.lock'. Since `lfile` is not a directory
|
||
|
# expected that operation will fail.
|
||
|
file(LOCK "${lfile}" DIRECTORY)
|