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

Function getInputPath

Source/cmCMakePathCommand.cxx:111–122  ·  view source on GitHub ↗

retrieve value of input path from specified variable

Source from the content-addressed store, hash-verified

109
110// retrieve value of input path from specified variable
111bool getInputPath(std::string const& arg, cmExecutionStatus& status,
112 std::string& path)
113{
114 cmValue def = status.GetMakefile().GetDefinition(arg);
115 if (!def) {
116 status.SetError("undefined variable for input path.");
117 return false;
118 }
119
120 path = *def;
121 return true;
122}
123
124bool HandleGetCommand(std::vector<std::string> const& args,
125 cmExecutionStatus& status)

Callers 14

HandleGetCommandFunction · 0.85
HandleNormalPathCommandFunction · 0.85
HandleNativePathCommandFunction · 0.85
HandleHasItemCommandFunction · 0.85
HandleIsAbsoluteCommandFunction · 0.85
HandleIsRelativeCommandFunction · 0.85

Calls 3

GetDefinitionMethod · 0.45
GetMakefileMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…