LOCK-error-lock-fail.cmake 225 B

123456
  1. set(lfile "${CMAKE_CURRENT_BINARY_DIR}/file-to-lock")
  2. FILE(WRITE "${lfile}" "")
  3. # Try to lock file '${lfile}/cmake.lock'. Since `lfile` is not a directory
  4. # expected that operation will fail.
  5. file(LOCK "${lfile}" DIRECTORY)