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

Function BuildDefinition

Source/cmPackageInfoReader.cxx:352–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352std::string BuildDefinition(std::string const& name, Json::Value const& value)
353{
354 if (!value.isNull() && value.isConvertibleTo(Json::stringValue)) {
355 return cmStrCat(name, '=', value.asString());
356 }
357 return name;
358}
359
360void AddDefinition(cmMakefile* makefile, cmTarget* target,
361 cm::string_view configuration,

Callers 1

AddDefinitionsFunction · 0.85

Calls 4

isNullMethod · 0.80
isConvertibleToMethod · 0.80
asStringMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…