Closed compor closed 6 years ago
It turns out that dependency resolution takes care of target clean up (at least for both cmake
and ninja
) :sunny:. So, there is no use for redundant (and generator-specific) rules. These are only needed for files generated during the build system configuration (e.g. configure_file
).
resolved in commit 8b7f99c
Currently the use of
ADDITIONAL_MAKE_CLEAN_FILES
for marking custom generated files in the build directory to be clean up, only works for themake
generator. Use a custom target to work around and allow proper clean-up when other generators are used (e.g.ninja
).Also, see this for why there is currently no way to add dependencies to the special
clean
target.