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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Detecting C and C++ toolchains is the default behavior for CMake. To disable this behavior, you’ll need to manually enable the language. If it’s project wide, you can explicitly tag the project as ‘C’ by using
project(projectName C). This information is in the CMake documentation.