[CMake] -DCMAKE_C_COMPILER:string="g++"

Alexander Neundorf a.neundorf-work at gmx.net
Thu Aug 9 14:40:07 EDT 2007


On Thursday 09 August 2007 14:14, Brandon Van Every wrote:
> On 8/8/07, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
> > On 2007-08-08 21:52-0400 Bill Hoffman wrote:
> > >> one of the c files includes a c++ file that is why I need to compile
> > >> my c files with g++ and not gcc. One of the solution would be to
> > >> rename my c file cpp or cxx
> > >> thanks,
> > >> Marie
> > >
> > > You can also set the language for that .c file to CXX.
> > > set_source_file_properties(foo.c PROPERTIES LANGUAGE CXX)
> >
> > Bill, the LANGUAGE property for set_source_files_properties is not
> > documented.  Please fix!
>
> I filed bug #5393 a little over 2 weeks ago.  We first raised this
> issue on the mailing list 6 weeks before that.  Asking to have it
> fixed doesn't do any good.  I've filed lots of "Content" bugs over the
> past year, now called "text" bugs.  Some are trivial to fix, others
> would take elbow grease to deal with.  Almost none have been dealt
> with.  We need a better way for the community to handle this, because
> Kitware isn't going to deal with most of them.  

That's not completely true, some issues were fixed but simply the bugs were 
not closed.
If you have an improvement for the documentation, it also helps if you create 
a patch.

Alex


More information about the CMake mailing list