From 70614b9e6a3cf4ae9b85598709736786b111ef3b Mon Sep 17 00:00:00 2001 From: Zack Galbreath Date: Tue, 29 Sep 2009 15:07:39 -0400 Subject: BUG: cmparseMSBuildXML should output StringProperty values too --- Source/cmparseMSBuildXML.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v0.12