<div><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<br>&gt; Hi,<br>&gt;<br>&gt; Having difficulty changing the object file extension.&nbsp;&nbsp;In my<br>&gt; CMakeLists.txtI have<br>&gt;<br>&gt; SET(CMAKE_C_OUTPUT_EXTENSION &quot;.obj&quot;)<br>&gt; SET(CMAKE_CXX_OUTPUT_EXTENSION &quot;.obj&quot;)
<br>&gt;<br>&gt; but I still get *.o object files.<br><br>Yes, that&#39;s too late in the cmake language setup process. What do you need<br>that for ?<br><br>Alex<br><br></blockquote></div><br>I&#39;m trying to work with a compiler where you cannot specify the object extension, the Matlab mex (pseudo) compiler.
<br>I tried this,<br><br>$ CMAKE_C_OUTPUT_EXTENSION=&quot;.obj&quot; CMAKE_CXX_OUTPUT_EXTENSION=&quot;.obj&quot; ccmake ../convert_visualsonics_2_mat_src/<br><br>but it didn&#39;t work.<br><br><br>