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

Method InitializeFromParent_ForSubdirsCommand

Source/cmStateSnapshot.cxx:458–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void cmStateSnapshot::InitializeFromParent_ForSubdirsCommand()
459{
460 std::string currentSrcDir = *this->GetDefinition("CMAKE_CURRENT_SOURCE_DIR");
461 std::string currentBinDir = *this->GetDefinition("CMAKE_CURRENT_BINARY_DIR");
462 this->InitializeFromParent();
463 this->SetDefinition("CMAKE_SOURCE_DIR", this->State->GetSourceDirectory());
464 this->SetDefinition("CMAKE_BINARY_DIR", this->State->GetBinaryDirectory());
465
466 this->SetDefinition("CMAKE_CURRENT_SOURCE_DIR", currentSrcDir);
467 this->SetDefinition("CMAKE_CURRENT_BINARY_DIR", currentBinDir);
468}
469
470bool cmStateSnapshot::StrictWeakOrder::operator()(
471 cmStateSnapshot const& lhs, cmStateSnapshot const& rhs) const

Callers 1

ConfigureMethod · 0.80

Calls 3

GetDefinitionMethod · 0.95
InitializeFromParentMethod · 0.95
SetDefinitionMethod · 0.95

Tested by

no test coverage detected