<div dir="ltr">No, it doesn'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'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"><<a href="mailto:phil@voltage.com">phil@voltage.com</a>></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. 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 'em that way, not sure why, so I was testing to see if they'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't.<br>
<br>
I tried adding<br>
SET(CMAKE_C_OUTPUT_EXTENSION ".obj")<br>
to my Toolchain file, but it made no difference.<br>
<br>
The CMake invocation is:<br>
<br>
cmake -DCMAKE_TOOLCHAIN_FILE:string="%DIGNUS_SOURCE%\zosport.cmake" -G"Unix Makefiles" %DIGNUS_SOURCE%\vtk-core\<br>
<br>
I even added:<br>
message(STATUS "Generator is ${CMAKE_GENERATOR}")<br>
in the ".obj" machine's CMakeLists.txt (that's the machine with Visual Studio installed), again, no difference.<br>
<br>
I'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>