What’s shown above is only the “end result”, not the actual error message. That is shown in the log window some time before.
You need to scroll up in the log window at the bottom of CMake (or enlarge it), then you should see some text in red with the actual error that occurred which caused CMake to fail.