[CMake] Adding configuration for a new compiler
Brad King
brad.king at kitware.com
Thu Apr 10 17:45:49 EDT 2008
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.
-Brad
More information about the CMake
mailing list