[CMake] Problem with removing directories containing soft links on MSYS

Volo Zyko volo.zyko at gmail.com
Thu Dec 7 09:35:16 EST 2017


The following list of bash commands ends with fail at least on MSYS
(don't know about Cygwin).

$> test_dir=$PWD/cmake

$> mkdir -p $test_dir/1
$> ln -s $test_dir/1/ $test_dir/a

$> cmake -E remove_directory $test_dir

Final CMake invocation reports: Error removing directory "C:/cmake".
It looks like cmake first removes "$test_dir/1" and then cannot remove
dangling "$test_dir/a". Is this something known?

 Volo Zyko


More information about the CMake mailing list