For projects that use CMake to generate build-scripts. This causes Jenkins to invoke cmake with the given options.
Any non-zero exit code during build-script generation causes Jenkins to mark the build as a failure.
It also can expose the CMAKE_BUILD_TOOL build environment variable if the chosen generator supports that.