CMake's copy command does not follow symlinks on macOS
Summary
According to the documentation, CMake states that it does follow symlinks, but it does not on macOS.
Steps to reproduce
touch theFile
ln -s theFile theSymlink
cmake -E copy theSymlink theSymlinkCopy
Expected behavior
theSymlinkCopy
is a copy of theFile
Observed behavior
theSymlinkCopy
is a copy of theSymlink
.
System information
- macOS Ventura 13.0
- CMake 3.27.7