cmake error cmakelists.txt:18 (project)

CMake Error at CMakeLists.txt:18 (project):
Generator

Visual Studio 17 2022

could not find any instance of Visual Studio.

I already tried the fix for the could not find any instance of visual studio error and it did not work

solved just had to download c and c++ dev stuff from visual studio