Not Szwagi
Not Szwagi

Reputation: 81

'No CMAKE_c_COMPILER could be found' with CMake

I'm having a lot of problems with the integrated CMake support in VS2017.

At first I had problems with getting the CXX compiler to work, but installing the "Win 8.1 and UCRT" package fixed it.

Now I'm having problems with getting it to compile C.

No CMAKE_c_COMPILER could be found.

Is there anything I can do? I can compile C no problem in the normal, non-cmake visual studio.

Upvotes: 1

Views: 432

Answers (1)

Tsyvarev
Tsyvarev

Reputation: 65928

If letters in CMAKE_c_COMPILER are precise, then you attempt to use "c" string as a language for project() call.

But proper language for C is "C" (uppercase).

Upvotes: 1

Related Questions