summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/RENAME-file-NO_REPLACE-fail.cmake
blob: c05dd6359b4ce396cd16ab2ad2bac00ca3cac364 (plain)
1
2
3
4
5
set(oldname "${CMAKE_CURRENT_BINARY_DIR}/input")
set(newname "${CMAKE_CURRENT_BINARY_DIR}/output")
file(WRITE "${oldname}" "a")
file(WRITE "${newname}" "b")
file(RENAME "${oldname}" "${newname}" NO_REPLACE)