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

Method ReplaceInstallPrefix

Source/cmGeneratorExpression.cxx:484–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void cmGeneratorExpression::ReplaceInstallPrefix(
485 std::string& input, std::string const& replacement)
486{
487 std::string::size_type pos = 0;
488 std::string::size_type lastPos = pos;
489
490 while ((pos = input.find("$<INSTALL_PREFIX>", lastPos)) !=
491 std::string::npos) {
492 std::string::size_type endPos = pos + cmStrLen("$<INSTALL_PREFIX>");
493 input.replace(pos, endPos - pos, replacement);
494 lastPos = endPos;
495 }
496}
497
498void cmCompiledGeneratorExpression::GetMaxLanguageStandard(
499 cmGeneratorTarget const* tgt, std::map<std::string, std::string>& mapping)

Callers

nothing calls this directly

Calls 2

cmStrLenFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected