MantisBT - CMake
View Issue Details
0010700CMakeCMakepublic2010-05-11 03:372010-12-15 09:47
Michael Frommberger 
Brad King 
normalminoralways
closedfixed 
CMake-2-8 
 
0010700: VS6 generator: resource compilation MinSizeRel Bug
I'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
I 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.
No tags attached.
diff MinSizeRel_Compile_Definitions_bug.diff (818) 2010-05-11 03:37
https://public.kitware.com/Bug/file/3102/MinSizeRel_Compile_Definitions_bug.diff
Issue History
2010-05-11 03:37Michael FrommbergerNew Issue
2010-05-11 03:37Michael FrommbergerFile Added: MinSizeRel_Compile_Definitions_bug.diff
2010-12-15 09:43David ColeAssigned To => Brad King
2010-12-15 09:43David ColeStatusnew => assigned
2010-12-15 09:47Brad KingNote Added: 0024149
2010-12-15 09:47Brad KingStatusassigned => closed
2010-12-15 09:47Brad KingResolutionopen => fixed

Notes
(0024149)
Brad King   
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 [^]