diff options
author | Florian Schweiger <husker@dzdm.de> | 2022-02-07 12:07:40 (GMT) |
---|---|---|
committer | Florian Schweiger <husker@dzdm.de> | 2022-02-07 12:07:40 (GMT) |
commit | 309191052cf83bc5535ff66e9ece04cda18d5fe5 (patch) | |
tree | f7a01a613683771f83d185638887bc84eb70ca0a /Source/cmVisualStudioSlnParser.cxx | |
parent | f7791698cbfd1b1de0ae2e26d1feebbc92acdc42 (diff) | |
download | CMake-309191052cf83bc5535ff66e9ece04cda18d5fe5.zip CMake-309191052cf83bc5535ff66e9ece04cda18d5fe5.tar.gz CMake-309191052cf83bc5535ff66e9ece04cda18d5fe5.tar.bz2 |
VS: Set Visual Studio versions read out from solution file
Diffstat (limited to 'Source/cmVisualStudioSlnParser.cxx')
-rw-r--r-- | Source/cmVisualStudioSlnParser.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmVisualStudioSlnParser.cxx b/Source/cmVisualStudioSlnParser.cxx index d900a95..8138f4c 100644 --- a/Source/cmVisualStudioSlnParser.cxx +++ b/Source/cmVisualStudioSlnParser.cxx @@ -219,9 +219,14 @@ bool cmVisualStudioSlnParser::State::Process( this->Stack.push(FileStateProject); } else this->IgnoreUntilTag("EndProject"); - } else if (line.GetTag().compare("Global") == 0) + } else if (line.GetTag().compare("Global") == 0) { + this->Stack.push(FileStateGlobal); - else { + } else if (line.GetTag().compare("VisualStudioVersion") == 0) { + output.SetVisualStudioVersion(line.GetValue(0)); + } else if (line.GetTag().compare("MinimumVisualStudioVersion") == 0) { + output.SetMinimumVisualStudioVersion(line.GetValue(0)); + } else { result.SetError(ResultErrorInputStructure, this->GetCurrentLine()); return false; } |