[cmake-developers] [CMake 0015720]: TARGET_OBJECTS do not expand correctly if OBJECT library had RC sources on Windows
Mantis Bug Tracker
mantis at public.kitware.com
Sun Aug 30 09:45:09 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15720
======================================================================
Reported By: snake
Assigned To:
======================================================================
Project: CMake
Issue ID: 15720
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-08-30 09:45 EDT
Last Modified: 2015-08-30 09:45 EDT
======================================================================
Summary: 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.
======================================================================
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
======================================================================
More information about the cmake-developers
mailing list