cmake --build C:/foo/build/ --target clean
--clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.)