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/DIRECTORY-symlink-clobber.c...

12 lines
649 B

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/old/dir)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/old/dir/file "")
file(CREATE_LINK dir ${CMAKE_CURRENT_BINARY_DIR}/old/lnk SYMBOLIC)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/old/dir DESTINATION dest)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/old/lnk DESTINATION dest)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/new/lnk)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/new/lnk/file "")
file(CREATE_LINK lnk ${CMAKE_CURRENT_BINARY_DIR}/new/dir SYMBOLIC)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/new/lnk DESTINATION dest)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/new/dir DESTINATION dest)