[CMake] Adding configuration for a new compiler

Hendrik Sattler post at hendrik-sattler.de
Thu Apr 10 18:03:20 EDT 2008


Am Donnerstag 10 April 2008 schrieb Brad King:
> Hendrik Sattler wrote:
> > The C compiler test fails because CMake insists on createing
> > testCCompiler.c.r30  and there doesn't seem to be way to tell it to not
> > include the source file name extension (here: .c) into the object file
> > name.
>
> It's undocumented because I didn't anticipate anyone would need to change
> the default, but the variable is "CMAKE_<lang>_OUTPUT_EXTENSION_REPLACE".
> Try adding
>
>    SET(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)
>    SET(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
>
> to your compiler configuration file.

Great :)
I was about to give up but will try this as first thing tomorrow.

HS


More information about the CMake mailing list