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/file/INSTALL-SYMLINK.cmake

14 lines
432 B

set(src "${CMAKE_CURRENT_BINARY_DIR}/src")
set(dst "${CMAKE_CURRENT_BINARY_DIR}/dst")
file(REMOVE RECURSE "${src}")
file(REMOVE RECURSE "${dst}")
file(MAKE_DIRECTORY "${src}")
execute_process(COMMAND
${CMAKE_COMMAND} -E create_symlink source "${src}/current_dir_symlink")
message(STATUS "Before Installing")
file(INSTALL FILES "${src}/current_dir_symlink"
DESTINATION ${dst} TYPE DIRECTORY)
message(STATUS "After Installing")