MantisBT - CMake
View Issue Details
0015720CMakeCMakepublic2015-08-30 09:452016-06-10 14:31
snake 
Kitware Robot 
normalminoralways
closedmoved 
WindowsWindows 10 Home Single Language10.0.10240
CMake 3.2.2 
 
0015720: TARGET_OBJECTS do not expand correctly if OBJECT library had RC sources on Windows
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.
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.
Attached is an example project that reproduces the problem.
No tags attached.
zip objlib-bug.zip (792) 2015-08-30 09:45
https://public.kitware.com/Bug/file/5518/objlib-bug.zip
Issue History
2015-08-30 09:45snakeNew Issue
2015-08-30 09:45snakeFile Added: objlib-bug.zip
2016-06-10 14:29Kitware RobotNote Added: 0042832
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042832)
Kitware Robot   
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.