[CMake] Compile all .c source files with the CXX compiler

Bill Hoffman bill.hoffman at kitware.com
Tue Mar 31 12:16:14 EDT 2009


Pau Garcia i Quiles wrote:
> Hello,
> 
> Have you tried PROJECT( myproject CXX ) ?
> 

That will not work.

The only way to make it work now is to use PROPERTIES LANGUAGE CXX on 
each file.   You can create a feature request if you want.

-Bill


More information about the CMake mailing list