[CMake] Incorrect object file name on cmake compilation

Ravi Raman ravi.raman at Xoriant.Com
Thu Sep 11 01:59:55 EDT 2014


Hi,

We are working on a cmake project.

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

To simulate the problem, please find attached herewith a zip file that contains
CMakeLists.txt
main.cpp
main.rc
The source list contains "main.cpp" and the resource file "main.rc"

Please note the following:

1.       This problem occurs only when the resource file main.rc is present in the list.

2.       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

Thanks & Regards

Ravi Raman
Xoriant Solutions Pvt. Ltd
4th Floor, Winchester, Hiranandani Business Park, Powai, Mumbai 400076, INDIA.
Tel: +91 22 30511000,9930100026 Extn: 2144 Voip No. 4088344495/96/97/98 Voip Extn:1178| Fax: +91 22 30511111
ravi.raman at xoriant.com<mailto:ram.singh at xoriant.com>| http://www.xoriant.com<http://www.xoriant.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140911/d716ac14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjFileName.zip
Type: application/x-zip-compressed
Size: 656 bytes
Desc: ObjFileName.zip
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140911/d716ac14/attachment.bin>


More information about the CMake mailing list