Skip to content

cmake --build: run configure preset before specified build preset

Zhi Han requested to merge hanzhi09/cmake:generate-buildsystem-if-missing into master

When "cmake --build --preset=foo", it is assumed that the corresponding buildsystem is existed, and if missing, an error message will be prompted.

However in this case, it is also assumed that the configured preset should also be existed and be used for the generation of the buildsystem.

The correlation is already deterministic, and could be done without further parameters to feed more information. So, the buildsystem can be generated by building if it is missing.

Signed-off-by: Zhi Han hanzhi09@gmail.com

Merge request reports