Best CMake users,<br><br>I am using CMake in some smaller embedded projects which we have converted from traditional make scripts. After all c-files has been compiled we want to perform some tests on the generated object-files. The tests we are running demands that the object files are denoted myFile.o and not myFile.c.obj which is the default when running CMake for MinGw. <br>
<br>My questions: <br><br>1. How can I change the default extension of an object file? I have tried to use the CMake variable CMAKE_C_OUTPUT_EXTENSION and set it to e.g. &quot;.o&quot; but the extension is still &quot;.obj&quot;. In the Cmake module &quot;CMakeCXXInformation.cmake&quot; this variable is set depending on the variabele &quot;UNIX&quot; and when I test to set the extension in this CMake module to &quot;.foo&quot; the extension is changed to &quot;.foo&quot;. Is it not possible to change the default extension from my main CMakeList-file?<br>
<br>
2. Is there a way to get the path of an object file? What I want to do
is to retreive the output path of an obcject file from a c-file e.g.appl/CMakeFiles/appl.dir/smhd/ if my c-file resides in appl/smhd/<br><br>I am using Cmake 2.6.2 on a Windows machine.<br><br>Thanks in advance,<br><br>Daniel Carlson<br>