<div dir="ltr">Hi Ravi.<br><br>In what sense is the name "incorrect?" There is no correct/incorrect way to name object files in relation to the source file name; it can be arbitrary, as long as it's correctly passed on to the linker. I believe CMake chooses to append ".obj" to the whole file name if there is more than one file with the same base name. But why should this be a problem?<br><br>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 11, 2014 at 7:59 AM, Ravi Raman <span dir="ltr"><<a href="mailto:ravi.raman@xoriant.com" target="_blank">ravi.raman@xoriant.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We are working on a cmake project. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The issue is that the cmake build is successful but after the execution of cmake build step, the name of the object file is incorrect. On compilation of the source file main.cpp, the name of the object file is coming incorrectly as main.cpp.obj
 instead of main.obj<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">To simulate the problem, please find attached herewith a zip file that contains
<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">CMakeLists.txt<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">main.cpp<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">main.rc<u></u><u></u></p>
<p class="MsoNormal">The source list contains “main.cpp” and the resource file “main.rc”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Please note the following:<u></u><u></u></p>
<p><u></u><span>1.<span style="font:7.0pt "Times New Roman"">      
</span></span><u></u>This problem occurs only when the resource file main.rc is present in the list.<u></u><u></u></p>
<p><u></u><span>2.<span style="font:7.0pt "Times New Roman"">      
</span></span><u></u>This problem does not occur when the resource file main.rc is excluded from the list OR if the resource file has a name other than main.rc<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks & Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="color:#1f497d">Ravi Raman <u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="color:#1f497d">Xoriant Solutions Pvt. Ltd<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:black">4th Floor, Winchester, Hiranandani Business Park, Powai, Mumbai 400076, INDIA.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:black">Tel: <a href="tel:%2B91%2022%2030511000" value="+912230511000" target="_blank">+91 22 30511000</a>,9930100026 Extn: 2144 Voip No. <a href="tel:4088344495" value="+14088344495" target="_blank">4088344495</a>/96/97/98 Voip Extn:1178| Fax: <a href="tel:%2B91%2022%2030511111" value="+912230511111" target="_blank">+91 22 30511111</a>
<u></u><u></u></span></p>
<p class="MsoNormal"><a href="mailto:ram.singh@xoriant.com" target="_blank"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue">ravi.raman@xoriant.com</span></a><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:black">| </span><a href="http://www.xoriant.com/" target="_blank"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:black">http://www.xoriant.com</span></a><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>