MantisBT - CMake | ||||||||||||||||||||
View Issue Details | ||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||
0013047 | CMake | CMake | public | 2012-03-17 08:11 | 2013-01-04 08:47 | |||||||||||||||
Reporter | Petr Pospíšil | |||||||||||||||||||
Assigned To | Brad King | |||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||
Platform | Windows | OS | OS Version | |||||||||||||||||
Product Version | CMake 2.8.7 | |||||||||||||||||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | |||||||||||||||||
Summary | 0013047: Visual Studio 2010 Generator and "PROPERTIES GENERATED 1" adds .obj as "not part of this build" to projects | |||||||||||||||||||
Description | When you add .obj files that already exist and want to add them to the executable or library sources, the Visual Studio 2010 Generator add the file to the Project but it is marked as "not part of this build" and not linked with the executable or library. If you look in the .vxproj file is says..: ... <ItemGroup> <None Include="C:/Users/PETR2/Desktop/bug/build/aaaa.obj" /> </ItemGroup> ... Instead it should read: <ItemGroup> <Object Include="C:/Users/PETR2/Desktop/bug/build/aaaa.obj" /> </ItemGroup> | |||||||||||||||||||
Steps To Reproduce | 1) Use the following CMakeLists.txt: ------------------------------------ cmake_minimum_required(VERSION 2.8) project(bug CXX) set( obj_file aaaa.obj ) set_source_files_properties( ${obj_file} PROPERTIES GENERATED 1) add_executable(main main.cpp ${obj_file}) ------------------------------------- with simple main.cpp and any .obj file, 2) run cmake with Visual Studio 2010 Generator 3) Open solution -> stack.obj is added as "Not part of this build" and the object file is not linked with the executable or library | |||||||||||||||||||
Additional Information | ||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||
Relationships |
| |||||||||||||||||||
Attached Files | ||||||||||||||||||||
Issue History | ||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||
2012-03-17 08:11 | Petr Pospíšil | New Issue | ||||||||||||||||||
2012-03-19 08:47 | Brad King | Relationship added | related to 0011147 | |||||||||||||||||
2012-03-19 08:47 | Brad King | Relationship added | related to 0011891 | |||||||||||||||||
2012-03-19 08:49 | Brad King | Note Added: 0028933 | ||||||||||||||||||
2012-03-19 08:50 | Brad King | Assigned To | => Brad King | |||||||||||||||||
2012-03-19 08:50 | Brad King | Status | new => assigned | |||||||||||||||||
2012-03-19 11:50 | Petr Pospíšil | Note Added: 0028937 | ||||||||||||||||||
2012-03-19 11:59 | Brad King | Note Added: 0028938 | ||||||||||||||||||
2012-03-20 09:46 | Brad King | Note Added: 0028942 | ||||||||||||||||||
2012-03-20 09:46 | Brad King | Status | assigned => resolved | |||||||||||||||||
2012-03-20 09:46 | Brad King | Fixed in Version | => CMake 2.8.8 | |||||||||||||||||
2012-03-20 09:46 | Brad King | Resolution | open => fixed | |||||||||||||||||
2012-04-19 15:54 | David Cole | Target Version | => CMake 2.8.8 | |||||||||||||||||
2012-09-03 16:02 | David Cole | Note Added: 0030887 | ||||||||||||||||||
2012-09-03 16:02 | David Cole | Status | resolved => closed | |||||||||||||||||
2013-01-04 08:47 | Brad King | Relationship added | related to 0013831 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|