<div dir="ltr">No, it doesn&#39;t make sense. Can you construct a minimal example that demonstrates this?<div><br></div><div>If not, there must be something in your project files that differentiates between in-source and out-of-source builds...?</div>
<div>Are you changing compilers based on in-source/out-of-source?<br></div><div><br></div><div>The in-source/out-of-source change should have no effect on the suffix used for object files. Isn&#39;t the obj file suffix typically chosen by the compiler...?</div>
<div><br></div><div><br><div class="gmail_quote">On Fri, Oct 10, 2008 at 12:50 PM, Phil Smith <span dir="ltr">&lt;<a href="mailto:phil@voltage.com">phil@voltage.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hm. If I do an out-of-source build, I get .o files. &nbsp;If I do an in-source build, I get .obj.<br>
<br>
(Yes, I know in-source builds are considered Evil; the lead engineer wants to do &#39;em that way, not sure why, so I was testing to see if they&#39;d work, noticed that I was getting .obj files.)<br>
<br>
Does this make any sense?<br>
<br>
...phsiii<br>
<div><div></div><div class="Wj3C7c">-----Original Message-----<br>
From: <a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a> [mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>] On Behalf Of Phil Smith<br>
Sent: Thursday, October 09, 2008 12:27 PM<br>
To: CMake<br>
Subject: [CMake] Object files: .o vs .obj?<br>
<br>
With (allegedly) identical CMake setups, we have two machines that generate different outputs: .o vs. obj. The one that generates .obj has Visual Studio installed, the other doesn&#39;t.<br>
<br>
I tried adding<br>
 &nbsp; &nbsp; &nbsp; &nbsp;SET(CMAKE_C_OUTPUT_EXTENSION &quot;.obj&quot;)<br>
to my Toolchain file, but it made no difference.<br>
<br>
The CMake invocation is:<br>
<br>
cmake -DCMAKE_TOOLCHAIN_FILE:string=&quot;%DIGNUS_SOURCE%\zosport.cmake&quot; -G&quot;Unix Makefiles&quot; %DIGNUS_SOURCE%\vtk-core\<br>
<br>
I even added:<br>
&nbsp;message(STATUS &quot;Generator is ${CMAKE_GENERATOR}&quot;)<br>
in the &quot;.obj&quot; machine&#39;s CMakeLists.txt (that&#39;s the machine with Visual Studio installed), again, no difference.<br>
<br>
I&#39;d slightly rather force .obj than .o, but in any case, I need it to be predictable. Any ideas?<br>
--<br>
...phsiii<br>
<br>
Phil Smith III<br>
<a href="mailto:phil@voltage.com">phil@voltage.com</a><br>
Voltage Security, Inc.<br>
<a href="http://www.voltage.com" target="_blank">www.voltage.com</a><br>
(703) 476-4511 (home office)<br>
(703) 568-6662 (cell)<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div></div>