summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/LOCK-lowercase.cmake
blob: 373afdadb5bb97bd811890b1c0c41c31da55f067 (plain)
1
2
3
4
5
6
7
8
9
10
11
set(lock "${CMAKE_CURRENT_BINARY_DIR}/file-to-lock")

if(WIN32)
  string(TOLOWER ${lock} lock)
endif()

file(LOCK ${lock} TIMEOUT 0)
file(LOCK ${lock} RELEASE)

file(LOCK ${lock} TIMEOUT 0)
file(LOCK ${lock} RELEASE)