MCPcopy Create free account
hub / github.com/Kitware/CMake / GetApplicationTypeRevision

Method GetApplicationTypeRevision

Source/cmGlobalVisualStudio10Generator.cxx:1328–1339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1326}
1327
1328std::string cmGlobalVisualStudio10Generator::GetApplicationTypeRevision() const
1329{
1330 if (this->GetSystemName() == "Android"_s) {
1331 return this->GetAndroidApplicationTypeRevision();
1332 }
1333
1334 // Return the first two '.'-separated components of the Windows version.
1335 std::string::size_type end1 = this->SystemVersion.find('.');
1336 std::string::size_type end2 =
1337 end1 == std::string::npos ? end1 : this->SystemVersion.find('.', end1 + 1);
1338 return this->SystemVersion.substr(0, end2);
1339}
1340
1341static std::string cmLoadFlagTableString(Json::Value entry, char const* field)
1342{

Callers 2

FindVCTargetsPathMethod · 0.95

Calls 4

GetSystemNameMethod · 0.80
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected