cmake: Test --build option startup error cases

Extend the RunCMake.CommandLine test with cases covering the "cmake
--build" option when the named directory does not provide a
CMakeCache.txt with a valid CMAKE_GENERATOR.
Merge topic 'fix-build-crash-on-bad-generator' into next

da762ab4 cmake: Test --build option startup error cases
cmake: Fix --build crash on bad CMAKE_GENERATOR in cache

If we fail to create the generator named by CMAKE_GENERATOR, exit
with an error message instead of crashing.  While at it, fix the
wording of the error message when CMAKE_GENERATOR is not set.

Extend the RunCMake.CommandLine test with cases covering the
"cmake --build" option when the named directory does not provide
a CMakeCache.txt with a valid CMAKE_GENERATOR.
Merge topic 'fix-build-crash-on-bad-generator' into next

44e2923f cmake: Fix --build crash on bad CMAKE_GENERATOR in cache