summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-08-22 13:27:00 (GMT)
committerBrad King <brad.king@kitware.com>2014-09-02 14:17:02 (GMT)
commitdd11ae8f0f72562f4cb0fabdf8b798cd75d36f41 (patch)
tree2d76239320f3e521d262c0c78e478c3d12f46b58 /Source/cmVisualStudio10TargetGenerator.h
parentb8e405387eca702d93a88eb55842a65de7792cf5 (diff)
downloadCMake-dd11ae8f0f72562f4cb0fabdf8b798cd75d36f41.zip
CMake-dd11ae8f0f72562f4cb0fabdf8b798cd75d36f41.tar.gz
CMake-dd11ae8f0f72562f4cb0fabdf8b798cd75d36f41.tar.bz2
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.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h
index 9d94365..e558f74 100644
--- a/Source/cmVisualStudio10TargetGenerator.h
+++ b/Source/cmVisualStudio10TargetGenerator.h
@@ -134,6 +134,7 @@ private:
std::string GUID;
std::string Name;
bool MSTools;
+ bool TargetCompileAsWinRT;
cmGlobalVisualStudio10Generator* GlobalGenerator;
cmGeneratedFileStream* BuildFileStream;
cmLocalVisualStudio7Generator* LocalGenerator;