View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014967CMakeCMakepublic2014-06-10 09:592016-06-10 14:31
ReporterJavier 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindowsOS Version7
Product VersionCMake 2.8.12.2 
Target VersionFixed in Version 
Summary0014967: VS 2005 Generator for OBJECT target create name.rc.res object but the compiler generates name.res files
DescriptionWhen I add an OBJECT target with an .rc file, the VS2005 generator adds the following in the .vcproj file:

<File RelativePath="something\BuildDLL.rc">
  <FileConfiguration Name="Debug|Win32">
    <Tool
       Name="VCResourceCompilerTool"
       ObjectFile="$(IntDir)/BuildDLL.rc.res"
     />

However, when building this target in VS, BuildDLL.rc is compiled into BuildDLL.res, so build fails because it can't find BuildDLL.rc.res.
Steps To Reproduce1) Create an OBJECT target with a resource file, ie name.rc.
2) Generate a solution with VS2005 geneartor.
3) Build.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036153)
Brad King (manager)
2014-06-10 11:14

It looks like resource files are not supported in OBJECT libraries in general. I just tried with the VS 12 2013 generator and it expects name.obj instead of name.res.

Just to make sure we're talking about the same thing, please provide an example CMakeLists.txt snippet producing the behavior you report.
(0042564)
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
2014-06-10 09:59 Javier New Issue
2014-06-10 11:14 Brad King Note Added: 0036153
2016-06-10 14:29 Kitware Robot Note Added: 0042564
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