#TodayILearned that when building a #CMake project using #CMakePresets, it is absolutely essential to specify the `binaryDir`, as otherwise `cmake --build --preset <preset>` will err with the ambiguous error message:
"Error: is not a directory"
This is not very well explained by the documentation that simply states:
> cmake --build --preset <preset>
>
> --build <dir>
> Project binary directory to be built. This is required (unless a preset is specified) ...
Cf. https://cmake.org/cmake/help/latest/manual/cmake.1.html#build-a-project