summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/RENAME-file-to-dir-fail.cmake
blob: 61fa644635ef2c196f47e17e2c47cfe818b951c1 (plain)
1
2
3
4
5
set(oldname "${CMAKE_CURRENT_BINARY_DIR}/input")
set(newname "${CMAKE_CURRENT_BINARY_DIR}/output")
file(WRITE "${oldname}" "")
file(MAKE_DIRECTORY "${newname}")
file(RENAME "${oldname}" "${newname}")