[cmake-developers] [CMake 0011896]: ".obj" or ".o" listed in ADD_LIBRARY does not get included in Visual Studio project, NMake build works

Mantis Bug Tracker mantis at public.kitware.com
Thu Feb 24 15:26:08 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11896 
====================================================================== 
Reported By:                Shash Chatterjee
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11896
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-24 15:26 EST
Last Modified:              2011-02-24 15:26 EST
====================================================================== 
Summary:                    ".obj" or ".o" listed in ADD_LIBRARY does not get
included in Visual Studio project, NMake build works
Description: 
When adding an object-file (pre-compiled, available only in binary form from
3rd-party) to a library, the object file does not get included in the library
when built under Visual Studio (tried Visual Studio 10/2010 and 8/2005).

When using NMake, for both VS-10 and VS-8, the object is included correctly.

If the project file for the library is updated manually, by selecting the
project properties, and then adding the .o/.obj as an "Additional Dependencies"
for the Librarian properties, then the build works.



Steps to Reproduce: 
An example source tree and 2 build directories are attached. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-24 15:26 Shash ChatterjeeNew Issue                                    
======================================================================




More information about the cmake-developers mailing list