[CMake] How to avoid having /D _MBCS ?
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 ? -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control GmbH, A-7000 Eisenstadt Marktstr. 3 Phone:+43 2682/741-62603, Fax:+43 2682/741-52555 - A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? -- 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
Re: [CMake] How to avoid having /D _MBCS ?
On Thu, Mar 21, 2013 at 10:20 AM, Martin Koller martin.kol...@etm.at 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) x:\x64\VC.110cmake --help-command remove_definitions cmake version 2.8.10.2 remove_definitions Removes -D define flags added by add_definitions. remove_definitions(-DFOO -DBAR ...) Removes flags (added by add_definitions) from the compiler command line for sources in the current directory and below. John -- 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
Re: [CMake] How to avoid having /D _MBCS ?
On Thursday 21 March 2013 15:29:18 John Drescher wrote: On Thu, Mar 21, 2013 at 10:20 AM, Martin Koller martin.kol...@etm.at 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.110cmake --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