diff options
author | Florian Schweiger <husker@dzdm.de> | 2022-02-07 13:07:40 +0100 |
---|---|---|
committer | Florian Schweiger <husker@dzdm.de> | 2022-02-07 13:07:40 +0100 |
commit | 309191052cf83bc5535ff66e9ece04cda18d5fe5 (patch) | |
tree | f7a01a613683771f83d185638887bc84eb70ca0a /Source/cmVisualStudioSlnData.h | |
parent | f7791698cbfd1b1de0ae2e26d1feebbc92acdc42 (diff) | |
download | cmake-309191052cf83bc5535ff66e9ece04cda18d5fe5.tar.gz |
VS: Set Visual Studio versions read out from solution file
Diffstat (limited to 'Source/cmVisualStudioSlnData.h')
-rw-r--r-- | Source/cmVisualStudioSlnData.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmVisualStudioSlnData.h b/Source/cmVisualStudioSlnData.h index b217bd8436..19e58f5a47 100644 --- a/Source/cmVisualStudioSlnData.h +++ b/Source/cmVisualStudioSlnData.h @@ -31,6 +31,22 @@ private: class cmSlnData { public: + std::string GetVisualStudioVersion() const { return visualStudioVersion; } + void SetVisualStudioVersion(const std::string& version) + { + visualStudioVersion = version; + } + + std::string GetMinimumVisualStudioVersion() const + { + return minimumVisualStudioVersion; + } + + void SetMinimumVisualStudioVersion(const std::string& version) + { + minimumVisualStudioVersion = version; + } + const cmSlnProjectEntry* GetProjectByGUID( const std::string& projectGUID) const; @@ -44,6 +60,7 @@ public: const std::string& projectRelativePath); private: + std::string visualStudioVersion, minimumVisualStudioVersion; using ProjectStorage = std::map<std::string, cmSlnProjectEntry>; ProjectStorage ProjectsByGUID; using ProjectStringIndex = std::map<std::string, ProjectStorage::iterator>; |