View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010700CMakeCMakepublic2010-05-11 03:372010-12-15 09:47
ReporterMichael Frommberger 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010700: VS6 generator: resource compilation MinSizeRel Bug
DescriptionI'm trying to generate with CMake 2.8.1 on Windows XP a VS6 project which compiles a resource. It works pretty well with Debug, Release and RelWithDebInfo. But with the MinSizeRel profile I got an error from VS6. In the generated dsp file I found the following line:
 # ADD RSC REL
Additional InformationI think the bug is in cmLocalVisualStudio6Generator.cxx. There are some string replacements. The replacement for the compile definitions for MinSizeRel seems to be incomplete (COMPILE_DEFINITIONS_MINSIZE instead of COMPILE_DEFINITIONS_MINSIZEREL). So the REL remains after the replacement. Here is a diff with the patch to solve this issue. After applying this patch to CMake 2.8.1, resource compilation works for me with all profiles.
TagsNo tags attached.
Attached Filesdiff file icon MinSizeRel_Compile_Definitions_bug.diff [^] (818 bytes) 2010-05-11 03:37 [Show Content]

 Relationships

  Notes
(0024149)
Brad King (manager)
2010-12-15 09:47

The patch was already applied as of CMake 2.8.2:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=667b1b22 [^]

 Issue History
Date Modified Username Field Change
2010-05-11 03:37 Michael Frommberger New Issue
2010-05-11 03:37 Michael Frommberger File Added: MinSizeRel_Compile_Definitions_bug.diff
2010-12-15 09:43 David Cole Assigned To => Brad King
2010-12-15 09:43 David Cole Status new => assigned
2010-12-15 09:47 Brad King Note Added: 0024149
2010-12-15 09:47 Brad King Status assigned => closed
2010-12-15 09:47 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team