[CMake] How to remove _WINDOWS for MSVC preprocessor definitions for library & executable projects?
Erwin Coumans
erwin.coumans at gmail.com
Tue Jul 14 15:07:32 EDT 2009
Hi,
By default Cmake seems to add some built-in preprocessor definitions
for Visual Studio project files,
such as WIN32 and _WINDOWS. WIN32 is ok, but _WINDOWS is not always desired.
I searched and tried some previous suggestions, but it seems only able
to add, but not remove definitions such as _WINDOWS.
http://www.mail-archive.com/cmake@cmake.org/msg16551.html
Is there an option to remove _WINDOWS from those definitions, for both
library and executable projects?
Thanks a lot,
Erwin
More information about the CMake
mailing list