[CMake] "Treat wchar as built-in type" in Cmake ?
Stefan Buschmann
s_buschmann at gmx.de
Fri Feb 8 18:06:01 EST 2008
Just add the corresponding command line option for the compiler:
ADD_DEFINITIONS(
/Zc:wchar_t- # Treat wchar_t as
built-in type
)
BTW: The command line switch for a specific option is usually mentioned
in the comments for that option in Visual Studio.
Stefan
Stephen Collyer schrieb:
> I have a single Win32 project where I need to set the
> VSC++ value of "Treat wchar as built-in type" to No
> (to prevent link errors against the Xerces libraries)
>
> Is it possible to do this from within CMake ? It'd
> be a lot nicer than having to do it manually within
> VS. Google seems to imply that there's some cmake
> code that relates to this, but I'm not sure what I'd
> have to do in a cmakelist file to change the value.
>
>
More information about the CMake
mailing list