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

Method AddCMakePrefixPath

Source/cmSearchPath.cxx:93–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void cmSearchPath::AddCMakePrefixPath(std::string const& variable)
94{
95 assert(this->FC);
96
97 // Get a path from a CMake variable.
98 if (cmValue value = this->FC->Makefile->GetDefinition(variable)) {
99 cmList expanded{ *value };
100 for (std::string& p : expanded) {
101 p = cmSystemTools::CollapseFullPath(
102 p, this->FC->Makefile->GetCurrentSourceDirectory());
103 }
104 this->AddPrefixPaths(expanded);
105 }
106}
107
108static std::string cmSearchPathStripBin(std::string const& s)
109{

Callers 2

FillCMakeVariablePathMethod · 0.80

Calls 2

AddPrefixPathsMethod · 0.95
GetDefinitionMethod · 0.45

Tested by

no test coverage detected