CMake fails on Windows when trying to build 1.12.1 from source

CMake 3.21.0 GUI
Visual Studio 2019
This seems to be an error with the GUI generated build. If I run cmake from the command line ( not the GUI) the cmake process succeeds.

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
CMake Error at config/cmake/ConfigureChecks.cmake:334 (file):
file failed to open for reading (No such file or directory)
Call Stack (most recent call first):
CMakeLists.txt:464 (include)

During this process one of the programs run by CMake crashes

We have been aware that the configure could fail and have addressed it in the current development code. It was an issue only with the GUI process. I think it had something to do with the way it would run through configure multiple times. The command line configures only once.