The only difference between the sucessfully&failed cmake_install.cmake is that the successfully one do not include PlatformName.
The environment is:
system: win10 (sucessfully one), Windows Server 2019 Standard (failed one)
cmake: 3.22.1
vs: Community/Professional 20022 64 bit for sucessfully/failed one
You can walk into CMakeFiles/X.XX.X subfolder of the binary dir after performing configure.
There are set of files there, like CMakeSystem.cmake, CMakeCCompiler.cmake, etc. which defines variables available to you.
For 64-bit Windows there are CMAKE_C_COMPILER_ARCHITECTURE_ID, MSVC_C_ARCHITECTURE_ID, and same for CXX with value ‘x64’. You may choose appropriate (I think, preferable CMAKE*).