PS C:\Users\juaramos\Downloads\0_simple_executable> cmake -B build -G "Visual Studio 17 2022"
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- The CXX compiler identification is MSVC 19.29.30133.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/juaramos/Downloads/0_simple_executable/build
PS C:\Users\juaramos\Downloads\0_simple_executable>
I ended up uninstalling vs2019 to see if CMake would stop trying to use the v142 toolset, however instead it now results in a fatal error when configuring a vs project.
C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(436,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found.
Ah, that makes sense 3.21.0 had support for preview 1.1. 3.21.1 added support for preview 2, 3.21.2 added support for preview 3.1, and 3.21.3 added support for preview 4. Further preview releases will require additional CMake releases (though 3.21 should get them at least until 3.22.0 is out, maybe more later, but that’s less certain).