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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers