summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2009-09-29 19:07:39 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2009-09-29 19:07:39 (GMT)
commit70614b9e6a3cf4ae9b85598709736786b111ef3b (patch)
tree43092db46aee265a1364c65d0fcf4bf63104ce51 /Source
parenta5be445ca9b84252b5e87708b8102de469cd23ae (diff)
downloadCMake-70614b9e6a3cf4ae9b85598709736786b111ef3b.zip
CMake-70614b9e6a3cf4ae9b85598709736786b111ef3b.tar.gz
CMake-70614b9e6a3cf4ae9b85598709736786b111ef3b.tar.bz2
BUG: cmparseMSBuildXML should output StringProperty values too
Diffstat (limited to 'Source')
-rwxr-xr-xSource/cmparseMSBuildXML.py7
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