summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/CREATE_LINK.cmake
blob: 1d65b694881388d4fceb8ad6afdb0c8f630e365d (plain)
1
2
3
4
5
6
7
8
9
file(CREATE_LINK ${CMAKE_CURRENT_LIST_FILE} TestLink.cmake RESULT result)
if(NOT result STREQUAL "0")
  message(SEND_ERROR "Hard link result='${result}'")
endif()

file(CREATE_LINK ${CMAKE_CURRENT_LIST_FILE} TestSymLink.cmake RESULT sym_result SYMBOLIC)
if(NOT sym_result STREQUAL "0")
  message(SEND_ERROR "Symlink result='${sym_result}'")
endif()