can build presets run a configuration?

The build preset inherits a configure preset. When building a project from the command line like this

cmake --build --preset default

can CMake run the configure command for me? Currently it results in Error: /tmp/test/build is not a directory.

This does not mean i don’t want to ever manually run a configure step (which i still can do), but CMake build already depends on a configuration.

Yes, CMakePresets.json supports configure presets, in the configurePresets field. You can then run it with:

cmake --preset configureDefault ..