[cmake-developers] [CMake 0015867]: Meta-projects generated for Visual Studio 2013 solutions are always multi-byte

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 30 05:17:03 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15867 
====================================================================== 
Reported By:                Marcel Beister
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15867
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-11-30 05:17 EST
Last Modified:              2015-11-30 05:17 EST
====================================================================== 
Summary:                    Meta-projects generated for Visual Studio 2013
solutions are always multi-byte
Description: 
Expected Behavior:
If "add_definitions(-D_UNICODE -DUNICODE)" was added to the CMakeList.txt, all
project files for Visual Studio solutions should be marked as unicode.

Real Behavior:
While the behavior is as expected in Visual Studio 2008, at least Visual Studio
2013 does not show the expected behavior and sets meta projects (e.g.
ZERO_CHECK) to multi-byte.

Problem:
Starting with Visual Studio 2013, MFC with multi-byte character set is marked
deprecated and no longer possible without installing additional software.


Steps to Reproduce: 
* Create a simple CMake project
* Add "add_definitions(-D_UNICODE -DUNICODE)" to the CMakeList.txt
* Generate a Visual Studio 2013 solution
* Open the generate solution with Visual Studio
* Verify the character set of meta projects (e.g. ZERO_CHECK)

Additional Information: 
http://stackoverflow.com/questions/22011610/how-do-i-set-unicode-as-character-set-in-the-all-build-and-zero-check-visual-stu?lq=1
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-11-30 05:17 Marcel Beister New Issue                                    
======================================================================



More information about the cmake-developers mailing list