[CMake] How to remove symbolic link

Petr Kmoch petr.kmoch at gmail.com
Wed Jun 27 07:06:11 EDT 2012


Hi all.

file(REMOVE ...) does not seem to be able to remove a file which is a
symbolic link (neither on NFS nor on NTFS). Is there a
platform-independent way to remove a symlink from within cmake, or do
I have to resort to if() and execute_process()?

Thanks for any replies.

Petr


More information about the CMake mailing list