summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/timeout-script.cmake
blob: e07dbf0b8a5c4435d97ff83f89b2acdd38d7b3b9 (plain)
1
2
3
4
5
if(NOT file_to_lock)
  message(FATAL_ERROR "file_to_lock is empty")
endif()

file(LOCK "${file_to_lock}" TIMEOUT 1)