View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015720CMakeCMakepublic2015-08-30 09:452016-06-10 14:31
Reportersnake 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindows 10 Home Single LanguageOS Version10.0.10240
Product VersionCMake 3.2.2 
Target VersionFixed in Version 
Summary0015720: TARGET_OBJECTS do not expand correctly if OBJECT library had RC sources on Windows
DescriptionThe $<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 Reproduce1. 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 InformationAttached is an example project that reproduces the problem.
TagsNo tags attached.
Attached Fileszip file icon objlib-bug.zip [^] (792 bytes) 2015-08-30 09:45

 Relationships

  Notes
(0042832)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 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


Copyright © 2000 - 2018 MantisBT Team