CMake/Tests/RunCMake/file/LOCK-lowercase.cmake
Ruslan Baratov a788cf3092 Tests: Add case for file(LOCK) with lower-cased path
The KWSys update in commit d28e4467 (KWSys 2016-09-14 (c4049689))
fixed this case, so add it to the test suite.

Closes: #16295
2016-09-15 11:44:28 -04:00

12 lines
217 B
CMake

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)