[CMake] Visual Studio 2005 forgets to add externally generated objects to link line
James Bigler
jamesbigler at gmail.com
Tue Jun 30 15:04:33 EDT 2009
On Tue, Jun 30, 2009 at 7:23 AM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
> James Bigler wrote:
>
>> I have a project that generates object files as part of the compilation.
>> I add the object names to the project with ${CMAKE_CFG_INTDIR} in the file
>> name and they show up in the solution explorer (which is what I would
>> expect).
>>
>> VS seems to do the right thing most of the time, but occasionally it will
>> not add the object files I generate to the link line. They are just
>> missing. If I restart Visual Studio and run compile again, the objects are
>> added back in as they should be.
>>
>> Has anyone noticed this?
>>
>> Is there something I should be doing in CMake to help avoid this?
>>
>> I'm using CMake 2.6.4, VS 2005 SP 1, on XP 64.
>>
>> Thanks,
>> James
>>
>> If you can create a small example with this issue and create a bug report
> that would be the best way to find out what is wrong.
>
> -Bill
>
OK, I finally got a reproducer for the crash and the missing objects that
doesn't require an external tool (I'm using cl.exe with a custom command).
It turns out, I needed to create a dll as part of the build process.
http://www.vtk.org/Bug/view.php?id=9221
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090630/22d43d54/attachment.htm>
More information about the CMake
mailing list