[CMake] Force C Compiler for C-Files

Stefan cmakeList at hohni-online.de
Mon Sep 15 21:25:27 EDT 2008


Hi @all,

 

it is possible to force VS2005 to use the C-Compiler instead of the
CXX-Compiler in a project? I try to convert one of my projects to CMAKE but
CMAKE configure all files to compile as cpp instead of C.

My project contains C-files as well as cpp-Files, so to say in general
project( fooProject C) won't work.

 

Is there a possibility to setup VS's configuration "compile as" to C via
CMAKE?

 

Thanks,

Stefan

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080915/e831d8d1/attachment.htm>


More information about the CMake mailing list