| 522 | } |
| 523 | |
| 524 | void 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 |
| 552 | void cmFindCommonDebugState::WriteSearchVariables(cmConfigureLog& log, |
nothing calls this directly
no test coverage detected