You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
346 B
12 lines
346 B
# start with a file in the same directory to avoid cross-device links
|
|
set(test_file ${CMAKE_CURRENT_BINARY_DIR}/CreateLinkTest.txt)
|
|
file(TOUCH ${test_file})
|
|
|
|
file(CREATE_LINK
|
|
${test_file} ${CMAKE_CURRENT_BINARY_DIR}/TestCreateLink.txt
|
|
RESULT result
|
|
)
|
|
if(NOT result STREQUAL "0")
|
|
message(SEND_ERROR "Hard link result='${result}'")
|
|
endif()
|