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

Function MakeSourceFilePathAbsoluteIfNeeded

Source/cmSetPropertyCommand.cxx:302–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302std::string MakeSourceFilePathAbsoluteIfNeeded(
303 cmExecutionStatus& status, std::string const& source_file_path,
304 bool const needed)
305{
306 if (!needed) {
307 return source_file_path;
308 }
309 std::string absolute_file_path = cmSystemTools::CollapseFullPath(
310 source_file_path, status.GetMakefile().GetCurrentSourceDirectory());
311 return absolute_file_path;
312}
313
314void MakeSourceFilePathsAbsoluteIfNeeded(
315 cmExecutionStatus& status,

Callers 3

HandleSourceModeFunction · 0.85

Calls 1

GetMakefileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…