I ran this command in VS Code:
cmake -S. -Bbuild
and I am getting this error:
CMake Error at CMakeLists.txt:43 (project):
Generator
Visual Studio 17 2022
Could not find specified instance of Visual Studio:
C:/Program Files/Microsoft Visual Studio/2022/Community
This command was working with cmake version 3.25, but after I changed the version to 3.10, it gave me above error. Now I have reinstalled version 3.25, but the error still exists.