Where is CMake located when downloading it from Visual Studio 2022 as I wanted to add it in environmental variables?
Launch the Native Tools Command Prompt (accessible via the Start Menu). From here, you can run:
where cmake
Output:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
to determine the location. I expect that for Visual Studio 2022 the path will be very similar.
However, the version of CMake distributed with Visual Studio has patches from Microsoft. You should either install upstream CMake for use outside of the Native Tools Command Prompt, or just use the Native Tools Command Prompt.