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

Method ReadAndStoreExternalGUID

Source/cmLocalVisualStudio7Generator.cxx:2200–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2198};
2199
2200void cmLocalVisualStudio7Generator::ReadAndStoreExternalGUID(
2201 std::string const& name, char const* path)
2202{
2203 cmVS7XMLParser parser;
2204 parser.ParseFile(path);
2205 // if we can not find a GUID then we will generate one later
2206 if (parser.GUID.empty()) {
2207 return;
2208 }
2209 std::string guidStoreName = cmStrCat(name, "_GUID_CMAKE");
2210 // save the GUID in the cache
2211 this->GlobalGenerator->GetCMakeInstance()->AddCacheEntry(
2212 guidStoreName, parser.GUID, "Stored GUID", cmStateEnums::INTERNAL);
2213}
2214
2215std::string cmLocalVisualStudio7Generator::GetTargetDirectory(
2216 cmGeneratorTarget const* target,

Callers 1

AddHelperCommandsMethod · 0.95

Calls 5

cmStrCatFunction · 0.70
ParseFileMethod · 0.45
emptyMethod · 0.45
AddCacheEntryMethod · 0.45
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected