diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2009-09-29 19:07:39 (GMT) |
---|---|---|
committer | Zack Galbreath <zack.galbreath@kitware.com> | 2009-09-29 19:07:39 (GMT) |
commit | 70614b9e6a3cf4ae9b85598709736786b111ef3b (patch) | |
tree | 43092db46aee265a1364c65d0fcf4bf63104ce51 /Source/cmparseMSBuildXML.py | |
parent | a5be445ca9b84252b5e87708b8102de469cd23ae (diff) | |
download | CMake-70614b9e6a3cf4ae9b85598709736786b111ef3b.zip CMake-70614b9e6a3cf4ae9b85598709736786b111ef3b.tar.gz CMake-70614b9e6a3cf4ae9b85598709736786b111ef3b.tar.bz2 |
BUG: cmparseMSBuildXML should output StringProperty values too
Diffstat (limited to 'Source/cmparseMSBuildXML.py')
-rwxr-xr-x | Source/cmparseMSBuildXML.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmparseMSBuildXML.py b/Source/cmparseMSBuildXML.py index fece9a6..4e3f34e 100755 --- a/Source/cmparseMSBuildXML.py +++ b/Source/cmparseMSBuildXML.py @@ -246,6 +246,13 @@ class MSBuildToCMake: else: toReturn +=" {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+"\",\n \""+i.DisplayName+"\",\n \"\", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},\n" + toReturn += "\n //String Properties\n" + for i in self.stringProperties: + if i.attributes["Switch"] == "": + toReturn += " // Skip [" + i.attributes["Name"] + "] - no command line Switch.\n"; + else: + toReturn +=" {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+i.attributes["Separator"]+"\",\n \""+i.DisplayName+"\",\n \"\", cmVS7FlagTable::UserValue},\n" + toReturn += " {0,0,0,0,0}\n};" return toReturn pass |