On Thursday 21 March 2013 15:29:18 John Drescher wrote: > On Thu, Mar 21, 2013 at 10:20 AM, Martin Koller <[email protected]> wrote: > > In my win project, when I use the visual studio generator (64bit), I always > > get the /D _MBCS flag in the compiler options > > (started with msbuild). > > When I generate Makefiles with the same project (JOM NMakefiles), _MBCS is > > not defined. > > I do not want to have it defined. How can I avoid it and still using > > vcxproj files ? > > -- > > I would use remove_definitions(-D_MBCS)
ok, thanks. What I do not like here is: > x:\x64\VC.110>cmake --help-command remove_definitions > cmake version 2.8.10.2 > remove_definitions > Removes -D define flags added by add_definitions. => I did not use add_definitions, therefore it looks like a hack to remove something I did not add. But I grepped the cmake sources and found another solution: I need to add the "/D _SBCS" flag. If that's set, cmake does not generate the _MBCS define -- Best regards/Schöne Grüße Martin A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments This mail was not scanned before sending. It was sent from a secure Linux desktop. -- 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
