我找不到 CMAKE_C_COMPILER 和 CMAKE_CXX_COMPILER 需要哪些值。 我使用 CMake 3.31.3
CMake-gui 错误:
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:38 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:38 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Configuring incomplete, errors occurred!```
gcc.exe
对于 CMAKE_C_COMPILER 和 g++.exe
对于 CMAKE_CXX_COMPILER