| 113 | } |
| 114 | |
| 115 | std::string cmLocalFastbuildGenerator::ConvertToIncludeReference( |
| 116 | std::string const& path, cmOutputConverter::OutputFormat format) |
| 117 | { |
| 118 | std::string converted = this->ConvertToOutputForExisting(path, format); |
| 119 | cmGlobalFastbuildGenerator const* GG = this->GetGlobalFastbuildGenerator(); |
| 120 | if (GG->UsingRelativePaths && cmSystemTools::FileIsFullPath(path)) { |
| 121 | std::string const binDir = this->ConvertToOutputFormat( |
| 122 | GG->GetCMakeInstance()->GetHomeOutputDirectory(), OutputFormat::SHELL); |
| 123 | if (binDir == converted) { |
| 124 | return "."; |
| 125 | } |
| 126 | return cmSystemTools::RelativePath(binDir, converted); |
| 127 | } |
| 128 | return converted; |
| 129 | } |
| 130 | |
| 131 | std::string cmLocalFastbuildGenerator::MaybeRelativeToWorkDir( |
| 132 | std::string const& path) const |
nothing calls this directly
no test coverage detected