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

Function StoreResult

Source/cmGetPropertyCommand.cxx:336–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334// Implementation of result storage.
335template <typename ValueType>
336bool StoreResult(OutType infoType, cmMakefile& makefile,
337 std::string const& variable, ValueType value)
338{
339 if (infoType == OutSet) {
340 makefile.AddDefinition(variable, value ? "1" : "0");
341 } else // if(infoType == OutValue)
342 {
343 if (value) {
344 makefile.AddDefinition(variable, value);
345 } else {
346 makefile.RemoveDefinition(variable);
347 }
348 }
349 return true;
350}
351template <>
352bool StoreResult(OutType infoType, cmMakefile& makefile,
353 std::string const& variable, std::nullptr_t value)

Callers 9

HandleGlobalModeFunction · 0.70
HandleDirectoryModeFunction · 0.70
HandleTargetModeFunction · 0.70
HandleFileSetModeFunction · 0.70
HandleSourceModeFunction · 0.70
HandleTestModeFunction · 0.70
HandleVariableModeFunction · 0.70
HandleCacheModeFunction · 0.70
HandleInstallModeFunction · 0.70

Calls 3

cmValueClass · 0.70
AddDefinitionMethod · 0.45
RemoveDefinitionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…