diff options
author | Tushar Maheshwari <tushar27192@gmail.com> | 2018-12-27 16:06:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-16 15:03:35 (GMT) |
commit | 45aa9c65a13105ff505e18f5029ef794b7aef9ab (patch) | |
tree | 5d446968c21e3feb1f212c511e5c604b4a0d24b1 /Tests/RunCMake/file/CREATE_LINK.cmake | |
parent | 8bb7562f1a4e75fa5cd00f4ebd868d1494b63e7a (diff) | |
download | CMake-45aa9c65a13105ff505e18f5029ef794b7aef9ab.zip CMake-45aa9c65a13105ff505e18f5029ef794b7aef9ab.tar.gz CMake-45aa9c65a13105ff505e18f5029ef794b7aef9ab.tar.bz2 |
Tests: file CREATE_LINK subcommand test cases
Diffstat (limited to 'Tests/RunCMake/file/CREATE_LINK.cmake')
-rw-r--r-- | Tests/RunCMake/file/CREATE_LINK.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/CREATE_LINK.cmake b/Tests/RunCMake/file/CREATE_LINK.cmake new file mode 100644 index 0000000..1d65b69 --- /dev/null +++ b/Tests/RunCMake/file/CREATE_LINK.cmake @@ -0,0 +1,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() |