[cmake-developers] [CMake 0015100]: /ZW- compiler flag to disable CompileAsWinRT property in Visual Studio project
Mantis Bug Tracker
mantis at public.kitware.com
Thu Aug 21 16:06:31 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15100
======================================================================
Reported By: Timur
Assigned To:
======================================================================
Project: CMake
Issue ID: 15100
Category: CCMake
Reproducibility: always
Severity: tweak
Priority: high
Status: new
======================================================================
Date Submitted: 2014-08-21 16:06 EDT
Last Modified: 2014-08-21 16:06 EDT
======================================================================
Summary: /ZW- compiler flag to disable CompileAsWinRT
property in Visual Studio project
Description:
Related to Issue 0012930
Visual Studio 12 WinRT application project requires CompileAsWinRT enabled
But when project also contains .c files this option must be turned off on them.
C files cannot be compiled with CompileAsWinRT setting.
CompileAsWinRT can be enabled with compile flag /ZW but cannot be disabled with
/ZW-
Can be easily fixed by addition additional compile flag definition for /ZW-
before /ZW:
{"CompileAsWinRT", "ZW-", "", "false", 0},
before existing: {"CompileAsWinRT", "ZW", "", "true", 0},
into the cmVS12CLFlagTable[] and cmVS11CLFlagTable
Additional Information:
---
Source/cmVS11CLFlagTable.h | 1 +
Source/cmVS12CLFlagTable.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/Source/cmVS11CLFlagTable.h b/Source/cmVS11CLFlagTable.h
index a61ab16..f591309 100644
--- a/Source/cmVS11CLFlagTable.h
+++ b/Source/cmVS11CLFlagTable.h
@@ -163,6 +163,7 @@ static cmVS7FlagTable cmVS11CLFlagTable[] =
//Bool Properties
+ {"CompileAsWinRT", "ZW-", "", "false", 0},
{"CompileAsWinRT", "ZW", "", "true", 0},
{"WinRTNoStdLib", "ZW:nostdlib", "", "true", 0},
{"SuppressStartupBanner", "nologo-", "", "false", 0},
diff --git a/Source/cmVS12CLFlagTable.h b/Source/cmVS12CLFlagTable.h
index 0a7916f..348f75b 100644
--- a/Source/cmVS12CLFlagTable.h
+++ b/Source/cmVS12CLFlagTable.h
@@ -172,6 +172,7 @@ static cmVS7FlagTable cmVS12CLFlagTable[] =
//Bool Properties
+ {"CompileAsWinRT", "ZW-", "", "false", 0},
{"CompileAsWinRT", "ZW", "", "true", 0},
{"WinRTNoStdLib", "ZW:nostdlib", "", "true", 0},
{"SuppressStartupBanner", "nologo", "", "true", 0},
--
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-08-21 16:06 Timur New Issue
======================================================================
More information about the cmake-developers
mailing list