[CMake] Setting the command Clean executes

Petr Kmoch petr.kmoch at gmail.com
Mon Jun 18 06:12:21 EDT 2012


Hi all,

is it possible to somehow set the command which 'make clean' or
'Build->Clean in VS' performs for a file? My situation is that a
custom command creates a symlink to a directory. I'd like to delete
this symlink when 'Clean' is performed. This fails silently on Unix
(no action is performed) and reports an error when Visual Studio
'Clean' is carried out.

Is there a way to modify the 'Clean' command, or perhaps a different
solution to my problem?

Thanks in advance.

Petr


More information about the CMake mailing list