[CMake] -DCMAKE_C_COMPILER:string="g++"

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 8 15:21:29 EDT 2007


On Wednesday 08 August 2007 15:04, Marie-Christine Vallet wrote:
> Hi,
> I would like to use g++ as my c compiler (which works) but cmake does
> not let me do that. Is this normal?

Yes.
This file is used for testing:

#ifndef __cplusplus
# error "The CMAKE_CXX_COMPILER is set to a C compiler"
#endif
int main(){return 0;}


More information about the CMake mailing list