| 91 | } |
| 92 | |
| 93 | void 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 | |
| 108 | static std::string cmSearchPathStripBin(std::string const& s) |
| 109 | { |
no test coverage detected