[CMake] Compile .c as c++ - VS2005

Bill Hoffman hoffman.mlist at gmail.com
Wed Mar 21 08:44:43 EST 2007


Filipe Sousa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ben Ratzlaff wrote:
>   
>> I have found that if I rename my .c files to .C then cmake does not emit
>> the XML in the .vsproj to change the build mode.
>>     
>
> .C is a c++ file name extension.
>
>   
set_source_file_properties(foo.c PROPERTIES LANGUAGE CXX)

However, there are some bugs with this right now, but they are fixed in 
CVS CMAke, and
they will be fixed in 2.4.7.

-Bill




More information about the CMake mailing list