summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
blob: 1c4dc12bbfe5b1f9bd50b5553f325806c38eccb8 (plain)
1
2
3
4
5
6
7
8
9
file(CREATE_LINK does_not_exist.txt TestLink.txt RESULT result)
if(NOT result STREQUAL "0")
  message("Hard link error: ${result}")
endif()

file(CREATE_LINK does_not_exist.txt TestSymLink.txt RESULT sym_result SYMBOLIC)
if(NOT sym_result STREQUAL "0")
  message("Symlink fail: ${sym_result}")
endif()