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

Method GenerateRuleFile

Source/cmGlobalVisualStudio10Generator.cxx:1257–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255}
1256
1257std::string cmGlobalVisualStudio10Generator::GenerateRuleFile(
1258 std::string const& output) const
1259{
1260 // The VS 10 generator needs to create the .rule files on disk.
1261 // Hide them away under the CMakeFiles directory.
1262 cmCryptoHash hasher(cmCryptoHash::AlgoMD5);
1263 std::string ruleDir = cmStrCat(
1264 this->GetCMakeInstance()->GetHomeOutputDirectory(), "/CMakeFiles/",
1265 hasher.HashString(cmSystemTools::GetFilenamePath(output)));
1266 std::string ruleFile = cmStrCat(
1267 ruleDir, '/', cmSystemTools::GetFilenameNameView(output), ".rule");
1268 return ruleFile;
1269}
1270
1271void cmGlobalVisualStudio10Generator::PathTooLong(cmGeneratorTarget* target,
1272 cmSourceFile const* sf,

Callers

nothing calls this directly

Calls 3

HashStringMethod · 0.80
cmStrCatFunction · 0.70
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected