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

Marie-Christine Vallet mmvallet at ucdavis.edu
Wed Aug 8 16:17:44 EDT 2007


Bill Hoffman wrote:
 > 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?
 >> Thanks again,
 >> Marie
 > I suspect you want to look at LINKER_LANGUAGE.  You really don't want
 > to use g++ for a c compiler.
 > What are you trying to do?
 >
 > -Bill
 >
 >
one of the c files includes a c++ file that is why I need to compile my
c files with g++ and not gcc. One of the solution would be to rename my
c file cpp or cxx
thanks,
Marie



More information about the CMake mailing list