Let CMake not detect C++ compiler

Viewed 3962

I'm working on a C project. But others told me that they couldn't build it because they didn't have a C++ compiler.

I have no idea how to disable C++'s detection. How to do this?

2 Answers

It is better to use LANGUAGES C That also combines with the more common use

project(projectName VERSION 1.0 LANGUAGES C)

Related