MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015100 | CMake | CCMake | public | 2014-08-21 16:06 | 2015-03-02 08:57 |
Reporter | Timur | ||||
Assigned To | Brad King | ||||
Priority | high | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.0.1 | ||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||
Summary | 0015100: /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 | ||||
Steps To Reproduce | |||||
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}, -- | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-08-21 16:06 | Timur | New Issue | |||
2014-08-22 09:40 | Brad King | Note Added: 0036664 | |||
2014-08-22 09:59 | Timur | Note Added: 0036666 | |||
2014-09-02 10:18 | Brad King | Note Edited: 0036664 | bug_revision_view_page.php?bugnote_id=36664#r1560 | ||
2014-09-02 10:18 | Brad King | Assigned To | => Brad King | ||
2014-09-02 10:18 | Brad King | Status | new => resolved | ||
2014-09-02 10:18 | Brad King | Resolution | open => fixed | ||
2014-09-02 10:18 | Brad King | Fixed in Version | => CMake 3.1 | ||
2014-09-02 10:18 | Brad King | Target Version | => CMake 3.1 | ||
2015-03-02 08:57 | Robert Maynard | Note Added: 0038102 | |||
2015-03-02 08:57 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|