Which .exe file is wanted by CMAKE for CMAKE_C_COMPILER and CMAKE_CXX_COMPILER parameter when using MinGW?

I cant find which values CMAKE_C_COMPILER and CMAKE_CXX_COMPILER require. Im using CMake 3.31.3

CMake-gui error:

The C compiler identification is unknown
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!

Upvotes: -7

Views: 60

Answers (1)

gcc.exe for CMAKE_C_COMPILER and g++.exe for CMAKE_CXX_COMPILER

Upvotes: 1

Related Questions