1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00
Files
CMake/Tests/RunCMake/CommandLine/E_remove_directory-symlink-dir-check.cmake
Jon Chronopoulos e6c9a8bac3 cmake: Teach -E remove_directory to remove directory symlinks
If the argument to `remove_directory` is a symlink to a directory,
remove the symlink instead.

Issue: #19533
2019-08-30 10:37:30 -04:00

7 lines
195 B
CMake

if(EXISTS ${out}/link_dir)
set(RunCMake_TEST_FAILED "did not remove ${out}/link_dir")
endif()
if(NOT EXISTS ${out}/dir)
set(RunCMake_TEST_FAILED "should not have removed ${out}/dir")
endif()