View Issue Details [ Jump to Notes ] | [ Print ] |
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. |
|
Attached Files | objlib-bug.zip [^] (792 bytes) 2015-08-30 09:45 |
|