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

Method Write

Source/cmFindCommon.cxx:524–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void cmFindCommonDebugState::Write()
525{
526 auto const* const fc = this->FindCommand;
527
528#ifndef CMAKE_BOOTSTRAP
529 // Write find event to the configure log if the log exists
530 if (cmConfigureLog* log =
531 fc->Makefile->GetCMakeInstance()->GetConfigureLog()) {
532 // Write event if any of:
533 // - debug mode is enabled
534 // - implicit logging should happen and:
535 // - the variable was not defined (first run)
536 // - the variable found state does not match the new found state (state
537 // transition)
538 if (fc->DebugModeEnabled() ||
539 (this->ShouldImplicitlyLogEvents() &&
540 (!fc->IsDefined() || fc->IsFound() != this->IsFound))) {
541 this->WriteEvent(*log, *fc->Makefile);
542 }
543 }
544#endif
545
546 if (fc->DebugModeEnabled()) {
547 this->WriteDebug();
548 }
549}
550
551#ifndef CMAKE_BOOTSTRAP
552void cmFindCommonDebugState::WriteSearchVariables(cmConfigureLog& log,

Callers

nothing calls this directly

Calls 8

GetConfigureLogMethod · 0.80
DebugModeEnabledMethod · 0.80
GetCMakeInstanceMethod · 0.45
IsDefinedMethod · 0.45
IsFoundMethod · 0.45
WriteEventMethod · 0.45
WriteDebugMethod · 0.45

Tested by

no test coverage detected