CMAKE C compiler not found

hi every one! new to cmake and am follow a tutorial on…so when i hit configure it`s give ,this error:
The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_C_COMPILER could be found.
Configuring incomplete, errors occurred!

these are installitions in VC2022:

how can i solve this?..and sorry if ,my english is bad

If you’re using a command prompt, you need to do one of:

  • use a Visual Studio generator (the IDE knows how to run the compiler)
  • use a Developer Command Prompt
  • load the compiler environment manually via vcvarsall.bat
1 Like

Am good now I just downloaded a pre-complied package for now I think I don’t need cmake for now😅… but I appreciate your help bro huge thanks<3!..