View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001041CMakepublic2004-08-09 10:312004-09-17 16:29
ReporterKris Dekeyser 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001041: _MBCS added to VS 6 projects
DescriptionThe Visual Studio 6 dsp generator (cmLocalVisualStudio6Generator) checks for thë string "D_UNICODE" and if not set it adds "-D_MBCS" to the project definitions. Unfortunately the generator only checks the CMAKE_CXX_FLAGS for that string, not the definitions added in the CMakeLists.txt with ADD_DEFINITIONS("-D_UNICODE"). The Visual Studio 7 generator does this correctly, though. With VS 6, we end up with a project that has both "_UNICODE" and "_MBCS" set, which is wrong and gives different results, depending on the order of the definition checks.

Patch diff is:
cvs -z9 -q diff cmLocalVisualStudio6Generator.cxx (in directory D:\CVSHome\CMake\CMake\Source)
Index: cmLocalVisualStudio6Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio6Generator.cxx,v
retrieving revision 1.57
diff -r1.57 cmLocalVisualStudio6Generator.cxx
1088c1088,1090
< if(flags.find("D_UNICODE") == flags.npos)
---
> std::string defs = m_Makefile->GetDefineFlags();
> if(flags.find("D_UNICODE") == flags.npos &&
> defs.find("D_UNICODE") == flags.npos)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0001479)
Bill Hoffman (manager)
2004-09-17 15:57

fixed in cvs, thanks.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team