[CMake] How to associate a command with a auto-generated target?

Óscar Fuentes ofv at wanadoo.es
Mon Nov 10 17:05:19 EST 2008


Alexander Neundorf <a.neundorf-work at gmx.net>
writes:

>> > Doesn't work, you have to do it the other way round: create a custom
>> > target my-special-clean, do what you need, and also execute something
>> > like ${CMAKE_MAKE_COMMAND} <directories etc> clean
>>
>> Sadly, this is not acceptable. 
>
> Setting the ADDITIONAL_CLEAN_FILES directory property is not powerful enough 
> for you ?

I guess you mean ADDITIONAL_MAKE_CLEAN_FILES. That was not what you
proposed on your previous message :-)

For this case, where a directory must be deleted together with all its
contents, it works.

Thank you, Alex.

-- 
Oscar



More information about the CMake mailing list