[CMake] Incorrect object file name on cmake compilation

Petr Kmoch petr.kmoch at gmail.com
Thu Sep 11 04:18:39 EDT 2014


I was wondering about this as well. Ravi, what is your motivation for
having object file names of a particular format? I don't think I've ever
had to care what object files in our builds are called.

Petr

On Thu, Sep 11, 2014 at 10:01 AM, Andreas Mohr <andi at lisas.de> wrote:

> Hi,
>
> > Date: Thu, 11 Sep 2014 07:49:23 +0000
> > From: Ravi Raman <ravi.raman at Xoriant.Com>
>
> > Hi,
> >
> > Thanks Petr for your reply. By incorrect I meant instead of the
> conventional main.obj, we get main.cpp.obj.
> > I understood what you are saying. We have found a solution for this in
> our cmake code.
>
> Good, so you've found a "solution" - to which, umm, I dare ask...
> "problem" exactly? :)
>
> > We have explicitly set the /Fo compiler flag for main.cpp. With that it
> creates main.obj for main.cpp and also main.res for main.rc
>
> Why does this need some manual effort (and of manually adding a very
> specific compiler flag syntax, in fact!)
> when it ideally/normally/usually shouldn't,
> one would want to ask.
> Perhaps this "issue" is indicative of an asymmetric/incomplete mechanism
> or configuration
> in CMake or this specific CMake environment, which one might want to
> discover and fix,
> in order to have the need for any manual tweaking (in all sufficiently
> standard cases)
> avoided in all future deployments...
>
> Thanks,
>
> Andreas Mohr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140911/75d01bb6/attachment.html>


More information about the CMake mailing list