summaryrefslogtreecommitdiffstats
path: root/Source/cmVS10CLFlagTable.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-23 18:59:26 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-23 18:59:26 (GMT)
commit8ae66bf456e1496113c576595639c111baee6471 (patch)
tree441742c06d19fe9a9930be6ea9741f2038a659ee /Source/cmVS10CLFlagTable.h
parent5484550af63946292c96baba472b7a959f0dfb9d (diff)
downloadCMake-8ae66bf456e1496113c576595639c111baee6471.zip
CMake-8ae66bf456e1496113c576595639c111baee6471.tar.gz
CMake-8ae66bf456e1496113c576595639c111baee6471.tar.bz2
Fix optionally-valued booleans in VS 10 flag table
This commit fixes the cmparseMSBuildXML.py script to generate correct flag table entries for booleans with optional value. These flags use two entries: the first should ignore the value and enable the option, and the second should use the value if given. Previously the first entry did not recognize flags with values. In particular this fixes flags like /MP4, but the change corrects matching of some other flags too. See issue #9771.
Diffstat (limited to 'Source/cmVS10CLFlagTable.h')
-rw-r--r--Source/cmVS10CLFlagTable.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/cmVS10CLFlagTable.h b/Source/cmVS10CLFlagTable.h
index 806a153..a7b1b36 100644
--- a/Source/cmVS10CLFlagTable.h
+++ b/Source/cmVS10CLFlagTable.h
@@ -138,7 +138,7 @@ static cmVS7FlagTable cmVS10CLFlagTable[] =
{"ErrorReporting", "errorReport:none",
"Do Not Send Report", "None", 0},
{"ErrorReporting", "errorReport:prompt",
- "Prompt Immediatelly", "Prompt", 0},
+ "Prompt Immediately", "Prompt", 0},
{"ErrorReporting", "errorReport:queue",
"Queue For Next Login", "Queue", 0},
{"ErrorReporting", "errorReport:send",
@@ -182,7 +182,7 @@ static cmVS7FlagTable cmVS10CLFlagTable[] =
{"FunctionLevelLinking", "Gy", "", "true", 0},
{"FloatingPointExceptions", "fp:except-", "", "false", 0},
{"FloatingPointExceptions", "fp:except", "", "true", 0},
- {"CodeGeneration", "hotpatch", "", "true", 0},
+ {"CreateHotpatchableImage", "hotpatch", "", "true", 0},
{"DisableLanguageExtensions", "Za", "", "true", 0},
{"TreatWChar_tAsBuiltInType", "Zc:wchar_t-", "", "false", 0},
{"TreatWChar_tAsBuiltInType", "Zc:wchar_t", "", "true", 0},
@@ -201,14 +201,16 @@ static cmVS7FlagTable cmVS10CLFlagTable[] =
{"UseUnicodeForAssemblerListing", "FAu", "", "true", 0},
//Bool Properties With Argument
- {"MultiProcessorCompilation", "MP", "", "true", cmVS7FlagTable::Continue},
+ {"MultiProcessorCompilation", "MP", "", "true",
+ cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
{"ProcessorNumber", "MP", "Multi-processor Compilation", "",
cmVS7FlagTable::UserValueRequired},
{"GenerateXMLDocumentationFiles", "doc", "", "true",
- cmVS7FlagTable::Continue},
+ cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
{"XMLDocumentationFileName", "doc", "Generate XML Documentation Files", "",
cmVS7FlagTable::UserValueRequired},
- {"BrowseInformation", "FR", "", "true", cmVS7FlagTable::Continue},
+ {"BrowseInformation", "FR", "", "true",
+ cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
{"BrowseInformationFile", "FR", "Enable Browse Information", "",
cmVS7FlagTable::UserValueRequired},
@@ -240,6 +242,9 @@ static cmVS7FlagTable cmVS10CLFlagTable[] =
//String Properties
// Skip [TrackerLogDirectory] - no command line Switch.
+ {"PreprocessOutputPath", "Fi",
+ "Preprocess Output Path",
+ "", cmVS7FlagTable::UserValue},
{"PrecompiledHeaderFile", "Yc",
"Precompiled Header Name",
"", cmVS7FlagTable::UserValueRequired},