VS: Do not compile C sources as WinRT (#15100)

The MSVC /ZW flag is valid only for C++ sources.  Whenever we enable
CompileAsWinRT for the whole target, disable it for all C sources.
Update the documentation of VS_WINRT_COMPONENT to drop the statement
about undefined behavior for non-C++ sources, because it is now
defined as expected.
This commit is contained in:
Brad King
2014-08-22 09:27:00 -04:00
parent b8e405387e
commit dd11ae8f0f
3 changed files with 15 additions and 4 deletions
+1
View File
@@ -134,6 +134,7 @@ private:
std::string GUID;
std::string Name;
bool MSTools;
bool TargetCompileAsWinRT;
cmGlobalVisualStudio10Generator* GlobalGenerator;
cmGeneratedFileStream* BuildFileStream;
cmLocalVisualStudio7Generator* LocalGenerator;