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.
cmake/Tests/RunCMake/install/FILES-symlink-to-directory....

10 lines
281 B

set(dst "${CMAKE_CURRENT_BINARY_DIR}/dst")
set(src "${CMAKE_CURRENT_BINARY_DIR}/src")
set(lnk "${CMAKE_CURRENT_BINARY_DIR}/lnk")
file(MAKE_DIRECTORY "${dst}")
file(MAKE_DIRECTORY "${src}")
file(CREATE_LINK "${src}" "${lnk}" SYMBOLIC)
install(FILES "${lnk}" DESTINATION "${dst}")