Feature Request: Provide an optional combined+build form of invoking cmake.
My codebase has a wrapper script around cmake used by my development staff. This wrapper script orchestrates multiple different cmake configuration/build trees with different configuration settings from the same source directory. The script also tries to wrangle whether or not it needs to run the configuration phase for a particular directory based on various heuristics such as if the user has changed the list of source directories to include in their build since the last run of the configuration phase (insusceptible via environment variable).
It would allow us to have much simpler logic if cmake were to support a command line invocation which provided all of the configuration parameters, ran configuration (only if needed based on the logic that cmake --build normally uses to determine if reconfiguration is needed) and then proceeded to invoke the build e.g.
cmake -G"Ninja Multi-Config" -S D:\builds\some-source-folder -B D:\builds\some-build-folder --toolchain my_toolchain_file.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CROSS_CONFIGS=all -DCMAKE_DEFAULT_CONFIGS="Release;Debug" -DCMAKE_CONFIGURATION_TYPES="Release;Debug;Checked" -DCMAKE_UNITY_BUILD=ON --build D:\builds\some-build-folder --target some-target
So that the wrapper script need not separate the configuration and build steps in the majority of cases.
Notably this would also most likely become the default way many projects use cmake in their continuous integration scripts, since there's no human interactivity to be desired the easiest way to accomplish the CI build is one command.