On Tue, Mar 25, 2008 at 3:08 AM, Ákos Maróy <[EMAIL PROTECTED]> wrote:

> Christian Ehrlicher wrote:
> >
> http://www.cmake.org/Wiki/CMake_FAQ#CMake_does_not_generate_a_.22make_distclean.22_target._Why.3F
> >
> > So I doubt such a target could be added without someone crying why his
> generated file did not get cleaned up...
>
> but, you could easily create a 'best-effort' distclean, that:
>
> - cleans up all files generated by CMake directly
> - provides hooks for external commands to do the same
>
> thus if the implementer does not use external commands to generate
> files, it works out of the box.
>
> if he does, he has a way of cleaning his files up, by attaching to the
> hooks provided, and cleaning up after himself there.


Yes, I agree.  I'm sure there are people out there that use custom scripts
with CMake that generate files that can't be tracked by CMake.  I would
argue this is a small use case.  Those users shouldn't expect CMake to clean
up their stuff for them automatically.  That's what
ADDITIONAL_MAKE_CLEAN_FILES is for.  CMake should be capable of cleaning up
after itself though.

-- 
Philip Lowman
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to