No CMAKE_CXX_COMPILER could be found

[variant] Loaded new set of variants

[kit] Successfully loaded 9 kits from C:\Users\mmetwalli\AppData\Local\CMakeTools\cmake-tools-kits.json

[visual-studio] Parse '' failed

[proc] Executing command: “D:\Program Files\CMake\bin\cmake.EXE” -Sd:/OneDrive/Documents/Projects/pytorch-cpp -Bd:/OneDrive/Documents/Projects/pytorch-cpp/build -G “Visual Studio 17 2022”

[proc] The command: “D:\Program Files\CMake\bin\cmake.EXE” -Sd:/OneDrive/Documents/Projects/pytorch-cpp -Bd:/OneDrive/Documents/Projects/pytorch-cpp/build -G “Visual Studio 17 2022” exited with code: 1 and signal: null

[main] Configuring folder: pytorch-cpp

[proc] Executing command: “D:\Program Files\CMake\bin\cmake.EXE” --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Sd:/OneDrive/Documents/Projects/pytorch-cpp -Bd:/OneDrive/Documents/Projects/pytorch-cpp/build -G “Visual Studio 17 2022”

[cmake] Not searching for unused variables given on the command line.

[cmake] – Selecting Windows SDK version to target Windows 10.0.19044.

[cmake] – The C compiler identification is unknown

[cmake] – The CXX compiler identification is unknown

[cmake] CMake Error at CMakeLists.txt:2 (project):

[cmake] No CMAKE_C_COMPILER could be found.

[cmake]

[cmake]

[cmake]

[cmake] CMake Error at CMakeLists.txt:2 (project):

[cmake] No CMAKE_CXX_COMPILER could be found.

[cmake]

[cmake]

[cmake]

[cmake] – Configuring incomplete, errors occurred!

[cmake] See also “D:/OneDrive/Documents/Projects/pytorch-cpp/build/CMakeFiles/CMakeOutput.log”.

[cmake] See also “D:/OneDrive/Documents/Projects/pytorch-cpp/build/CMakeFiles/CMakeError.log”.

[proc] The command: “D:\Program Files\CMake\bin\cmake.EXE” --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Sd:/OneDrive/Documents/Projects/pytorch-cpp -Bd:/OneDrive/Documents/Projects/pytorch-cpp/build -G “Visual Studio 17 2022” exited with code: 1 and signal: null

[visual-studio] Parse '' failed

I solved it by installing Windows SDK