| 85 | } |
| 86 | |
| 87 | void cmInstallDirectoryGenerator::GenerateScriptForConfig( |
| 88 | std::ostream& os, std::string const& config, Indent indent) |
| 89 | { |
| 90 | std::vector<std::string> dirs = this->GetDirectories(config); |
| 91 | |
| 92 | if (!(dirs.size() == 1 && dirs[0].empty())) { |
| 93 | // Make sure all dirs have absolute paths. |
| 94 | cmMakefile const& mf = *this->LocalGenerator->GetMakefile(); |
| 95 | for (std::string& d : dirs) { |
| 96 | if (!cmSystemTools::FileIsFullPath(d)) { |
| 97 | d = cmStrCat(mf.GetCurrentSourceDirectory(), '/', d); |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | this->AddDirectoryInstallRule(os, config, indent, dirs); |
| 103 | } |
| 104 | |
| 105 | void cmInstallDirectoryGenerator::AddDirectoryInstallRule( |
| 106 | std::ostream& os, std::string const& config, Indent indent, |
nothing calls this directly
no test coverage detected