"cmake -E remove noexist" returns zero exit code
According to the documentation:
remove [-f] <file>...
Remove the file(s). If any of the listed files already do not exist, the command returns a non-zero exit code, but no message is logged.
However, the following returns zero:
cmake -E remove noexist
even when -f
is not specified.