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

Method ConvertToIncludeReference

Source/cmLocalFastbuildGenerator.cxx:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115std::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
131std::string cmLocalFastbuildGenerator::MaybeRelativeToWorkDir(
132 std::string const& path) const

Callers

nothing calls this directly

Calls 4

ConvertToOutputFormatMethod · 0.45
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected