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

Method AddCMakePath

Source/cmSearchPath.cxx:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void cmSearchPath::AddCMakePath(std::string const& variable)
68{
69 assert(this->FC);
70
71 // Get a path from a CMake variable.
72 if (cmValue value = this->FC->Makefile->GetDefinition(variable)) {
73 cmList expanded{ *value };
74
75 for (std::string const& p : expanded) {
76 this->AddPathInternal(
77 cmSystemTools::CollapseFullPath(
78 p, this->FC->Makefile->GetCurrentSourceDirectory()),
79 "");
80 }
81 }
82}
83
84void cmSearchPath::AddEnvPath(std::string const& variable)
85{

Calls 2

AddPathInternalMethod · 0.95
GetDefinitionMethod · 0.45

Tested by

no test coverage detected