| 65 | } |
| 66 | |
| 67 | void 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 | |
| 84 | void cmSearchPath::AddEnvPath(std::string const& variable) |
| 85 | { |
no test coverage detected