mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
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:
@@ -134,6 +134,7 @@ private:
|
||||
std::string GUID;
|
||||
std::string Name;
|
||||
bool MSTools;
|
||||
bool TargetCompileAsWinRT;
|
||||
cmGlobalVisualStudio10Generator* GlobalGenerator;
|
||||
cmGeneratedFileStream* BuildFileStream;
|
||||
cmLocalVisualStudio7Generator* LocalGenerator;
|
||||
|
||||
Reference in New Issue
Block a user