[CMake] building c code as c++ code
John Pretz
pretz at umdgrb.umd.edu
Sun Jun 10 11:03:55 EDT 2007
Yes, if I say: PROJECT(projectname CXX) in the source, then it doesn't
generate a target for my .c files. The resulting makefiles don't even
try to compile the .c file.
I neglected in my e-mail that I'm using the latest-and-greatest cmake
version 2.4-patch 6.
Best,
John
Brandon Van Every wrote:
> On 6/10/07, John Pretz <pretz at umdgrb.umd.edu> wrote:
>>
>> What I need to do is convince cmake that this .c source code is supposed
>> to be compiled with a c++ compiler. If I rename the files (foo.c ->
>> foo.cxx), it builds correctly, but again, assume I'm not allowed to
>> modify the files.
>
> You're saying PROJECT(projectname CXX) doesn't work? If it doesn't,
> that's a showstopper bug. I'd be surprised.
>
>
> Cheers,
> Brandon Van Every
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list