summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioSlnParser.cxx
diff options
context:
space:
mode:
authorFlorian Schweiger <husker@dzdm.de>2022-02-07 12:07:40 (GMT)
committerFlorian Schweiger <husker@dzdm.de>2022-02-07 12:07:40 (GMT)
commit309191052cf83bc5535ff66e9ece04cda18d5fe5 (patch)
treef7a01a613683771f83d185638887bc84eb70ca0a /Source/cmVisualStudioSlnParser.cxx
parentf7791698cbfd1b1de0ae2e26d1feebbc92acdc42 (diff)
downloadCMake-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.cxx9
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;
}