[CMake] CMake and it's invocation from MS VC7

William A. Hoffman billlist at nycap.rr.com
Wed May 17 20:44:09 EDT 2006


At 05:57 PM 5/17/2006, Steve Johns wrote:
>>Can't you just rename the file to have a C++ extension?  If not, you can get "foo.c" compiled as C++ by creating an extra file called "foo.cxx" and adding it instead.  The file would contain just the code
>>
>>// foo.cxx
>>#include "foo.c"
>
>Good point.
>
>Actually, it appears that I'm still seeing capital C  (e.g. "FOO.C") treated as C++, which is working out OK (so long as I know why it's happening <g>).
>
>BTW, can you confirm that behavior is still "expected, as implemented" in CMake 2.4.2 ?

Capital C is a common extension for C++ on unix systems.  So by default it is c++ in
cmake.

-Bill



More information about the CMake mailing list