MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012189 | CMake | public | 2011-05-14 06:36 | 2012-07-09 06:52 | |
Reporter | Strimo | ||||
Assigned To | David Cole | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | ||
Summary | 0012189: It is not possible to generate a Visual Studio project with ASCII/SBCS character set | ||||
Description | In Visual Studio 9.0 (and prior, 10.0 i don't know) it is possible specify three different character sets for your project within the project properties: Not Set = ASCII/SBCS (Single Byte Character Set) Unicode Multi-Byte Depending on the option different preprocessor defines are set (http://msdn.microsoft.com/en-us/library/c426s321(v=vs.80).aspx [^]): SBCS: neither _UNICODE nor _MBCS defined Unicode: _UNICODE defined Multi_Byte: _MBCS defined The character set settings is stored within the vs proj files as an xml attribute: SBCS: CharacterSet="0" Unicode: CharacterSet="1" Multi-Byte: CharacterSet="2" However, the cmake visual studio generators do not support generating of projects with CharacterSet="0" (see cmLocalVisualStudio7Generator.cxx line 730). At the moment the generators select unicode if a _UNICODE macro has been set by add_definitions, otherwise multi-byte is selected. To solve the problem and to keep backwards compatability, i suggest to define the _MBCS macro by default for the visual studio generators and to set CharacterSet="2" only if this macro is still available and otherwise CharacterSet="0". In that case the user can remove the _MBCS macro by remove_definitions and select this way the SBCS. If the user adds _UNICODE by add_definitions CharacterSet="1" should be selected and the conflicting _MBCS macro must be deleted by the code generator. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | 2005, 2008, 2010, CharacterSet, visual studio, visual studio 2010 | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/3955/SBCS.patch ![]() https://public.kitware.com/Bug/file/3958/SBCS-revised.patch ![]() https://public.kitware.com/Bug/file/4038/SBCS_With_Test.patch ![]() https://public.kitware.com/Bug/file/4225/SBCS_git | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-05-14 06:36 | Strimo | New Issue | |||
2011-06-21 10:42 | Aaron C. Meadows | Note Added: 0026938 | |||
2011-06-21 10:43 | Aaron C. Meadows | File Added: SBCS.patch | |||
2011-06-21 10:43 | Aaron C. Meadows | Tag Attached: visual studio 2010 | |||
2011-06-21 10:43 | Aaron C. Meadows | Tag Attached: 2010 | |||
2011-06-21 10:43 | Aaron C. Meadows | Tag Attached: visual studio | |||
2011-06-21 10:44 | Aaron C. Meadows | Tag Attached: 2005 | |||
2011-06-21 10:44 | Aaron C. Meadows | Tag Attached: 2008 | |||
2011-06-21 10:45 | Aaron C. Meadows | Tag Attached: CharacterSet | |||
2011-06-22 19:58 | Aaron C. Meadows | File Added: SBCS-revised.patch | |||
2011-06-22 19:59 | Aaron C. Meadows | Note Added: 0026955 | |||
2011-08-31 12:02 | David Cole | Assigned To | => David Cole | ||
2011-08-31 12:02 | David Cole | Status | new => assigned | ||
2011-09-01 11:24 | Aaron C. Meadows | File Added: SBCS_With_Test.patch | |||
2011-09-01 11:24 | Aaron C. Meadows | Note Added: 0027317 | |||
2011-11-19 04:38 | Vladislav | Note Added: 0027830 | |||
2012-02-13 13:25 | John Grant | Note Added: 0028579 | |||
2012-02-16 16:29 | Aaron C. Meadows | File Added: SBCS_git | |||
2012-02-16 16:30 | Aaron C. Meadows | Note Added: 0028612 | |||
2012-02-17 11:33 | David Cole | Target Version | => CMake 2.8.8 | ||
2012-02-17 11:34 | David Cole | Note Added: 0028615 | |||
2012-02-17 11:34 | David Cole | Status | assigned => resolved | ||
2012-02-17 11:34 | David Cole | Fixed in Version | => CMake 2.8.8 | ||
2012-02-17 11:34 | David Cole | Resolution | open => fixed | ||
2012-07-09 06:52 | David Cole | Note Added: 0029976 | |||
2012-07-09 06:52 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|