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
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers