[CMake] changing object file extension from ".o"

Alexander Neundorf a.neundorf-work at gmx.net
Wed Nov 7 14:56:36 EST 2007


On Wednesday 07 November 2007, Matthew McCormick wrote:
> Hi,
>
> Having difficulty changing the object file extension.  In my
> CMakeLists.txtI have
>
> SET(CMAKE_C_OUTPUT_EXTENSION ".obj")
> SET(CMAKE_CXX_OUTPUT_EXTENSION ".obj")
>
> but I still get *.o object files.

Yes, that's too late in the cmake language setup process. What do you need 
that for ?

Alex


More information about the CMake mailing list