Why is it so hard to copy files with cmake