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

Function prefixItems

Source/cmGeneratorExpression.cxx:232–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static void prefixItems(std::string const& content, std::string& result,
233 cm::string_view prefix)
234{
235 std::vector<std::string> entries;
236 cmGeneratorExpression::Split(content, entries);
237 char const* sep = "";
238 for (std::string const& e : entries) {
239 result += sep;
240 sep = ";";
241 if (!cmSystemTools::FileIsFullPath(e) &&
242 cmGeneratorExpression::Find(e) != 0) {
243 result += prefix;
244 }
245 result += e;
246 }
247}
248
249static std::string stripExportInterface(
250 cm::string_view input, cmGeneratorExpression::PreprocessContext context,

Callers 1

stripExportInterfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…