[CMake] building c code as c++ code

Brandon Van Every bvanevery at gmail.com
Mon Jun 11 10:55:13 EDT 2007


On 6/10/07, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>
> No need for a bug report, this can be done like this:

Ah, I learn something.

> set_source_files_properties(foo.c bar.c PROPERTIES LANGUAGE CXX)

In 2.4.6 this is not documented,

> set_target_properties(SetLang PROPERTIES LINKER_LANGUAGE CXX)

but this is.

> I do think there is a bug that breaks this in 2.4.6, but it will be
> fixed in 2.4.7.

Is LANGUAGE documented in 2.4.7?


Cheers,
Brandon Van Every


More information about the CMake mailing list