[CMake] Re: How to nuke a directory (for 'make clean')?
Matthew Woehlke
mw_triad at users.sourceforge.net
Tue Mar 13 10:09:13 EST 2007
Philippe Poilbarbe wrote:
> Matthew Woehlke a écrit :
>> Alexander Neundorf wrote:
>> I already tried this:
>>
>> SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES doc/)
>>
>> ...and it doesn't work. Maybe this should be a bug/RFE?
>>
> At now, I have done this with a ADD_CUSTOM_TARGET(distclean)
> which depends on clean and launches a perl script doing the
> job (named with a .pl extension in order to be seen as
> a script even on windows).
>
> I did also post a feature request (2937) in order to be able to delete
> a directory with a command line option of "cmake -E". It allows
> being able to delete a directory in the same portable way,
> as done with the script above but without a perl dependency.
> It has just been implemented: the mail for a "closed" status has
> been sent today :) . The command is "cmake -E remove_directory"
> which removes the directory and all its content (files/subdirs).
>
> And maybe the ability of deleting directories from
> ADDITIONAL_MAKE_CLEAN_FILES have been
> implemented (which would be consistent).
Ok, thanks for the info. I'll watch for an updated version.
--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.
More information about the CMake
mailing list