[cmake-developers] Add native options to the clean step of 'cmake --build .. --clean-first'

Ben Boeckel ben.boeckel at kitware.com
Fri Dec 16 08:57:01 EST 2016


On Fri, Dec 16, 2016 at 09:46:22 +0100, Yves Frederix wrote:
> Although I am not fully convinced that the above might actually happen
> in 'normal' practice, I do agree that it is a risk that should not be
> introduced simply to get less verbose output for the clean step (my
> use case). Pulling the PR ;) Thanks for your insights!

If that is what you want, a `clean-quiet` target might be more useful
which then uses generator-specific flags. This could even be a separate
`--quiet` flag for `cmake --build` which would then apply to both the
build and clean step.

--Ben


More information about the cmake-developers mailing list