MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015720 | CMake | CMake | public | 2015-08-30 09:45 | 2016-06-10 14:31 |
| Reporter | snake | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Windows | OS | Windows 10 Home Single Language | OS Version | 10.0.10240 |
| Product Version | CMake 3.2.2 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015720: TARGET_OBJECTS do not expand correctly if OBJECT library had RC sources on Windows | ||||
| Description | The $<TARGET_OBJECTS:lib> is expanded incorrectly on Windows if one or more .rc files are among the lib sources. The problem is, when an .rc file is compiled it produces a .res file. But when $<TARGET_OBJECTS:objlib> is expanded all names are expanded with the .obj extension leading to File Not Found errors. | ||||
| Steps To Reproduce | 1. Create an empty .rc file and a trivial C program. 2. Add an OBJECT library that depends on the .rc file. 3. Add an executable that uses the objects from the library. 4. Configure and build. | ||||
| Additional Information | Attached is an example project that reproduces the problem. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5518/objlib-bug.zip | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-08-30 09:45 | snake | New Issue | |||
| 2015-08-30 09:45 | snake | File Added: objlib-bug.zip | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042832 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||