Hi All, Thank you very much. I found the reason. It is a spelling error. 
(UINCODE, not UNICODE) How stupid I am. Thanks again. Best regardsYanming
 Date: Wed, 20 Feb 2013 07:35:57 -0600
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [CMake] Remove _MBCS



I am developing an application on windows with VS2012 and CMake (2.8.10.2). I 
want to use unicode in my program, so I add UNICODE and _UNICODE with 
ADD_DEFINITIONS. However, there is always a _MBCS marco in the generated 
project file. The project can be compiled, but I am not happy with that. Could 
someone can tell me how to remove the _MBCS? Thanks.


Did you try 
remove_definitions?http://www.cmake.org/cmake/help/v2.8.1/cmake.html#command:remove_definitions




--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake                                     
  
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to