[CMake] RE: Re: changing object file extension from ".o"

Matthew McCormick matthew.m.mccormick at gmail.com
Wed Nov 7 16:13:32 EST 2007


>
>
> > 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
>
>
I'm trying to work with a compiler where you cannot specify the object
extension, the Matlab mex (pseudo) compiler.
I tried this,

$ CMAKE_C_OUTPUT_EXTENSION=".obj" CMAKE_CXX_OUTPUT_EXTENSION=".obj" ccmake
../convert_visualsonics_2_mat_src/

but it didn't work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071107/39c11489/attachment.htm


More information about the CMake mailing list