[CMake] VS8.0 CompileAs
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Tue Apr 15 06:14:04 EDT 2008
> Von: Philippe Fremy
>
> Hi,
>
> For one of my project, I need to compile files with .c extension as C++
> files. It's an uncommon need but it exists.
>
> In Visual Sturio, there is a compiler option, /TP that does exactly
> this. In Visual Studio 2005 project files, it seems to translate into
> CompileAs property which can be set to 1 (compile as C), 2 (compile as
> C++) or 3 (compile as the project defines it).
>
> I am using CMake 2.4.8
>
<snip>
Looking in the cmake documentation for SET_SOURCE_FILES_PROPERTIES and LANGUAGE should help.
Christian
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
More information about the CMake
mailing list