Procházet zdrojové kódy

cmMakefile: Move the InitializeFromParent method

Stephen Kelly před 10 roky
rodič
revize
bbb507aebc
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Source/cmMakefile.cxx

+ 2 - 2
Source/cmMakefile.cxx

@@ -1554,13 +1554,13 @@ void cmMakefile::InitializeFromParent(cmMakefile* parent)
   // Initialize definitions with the closure of the parent scope.
   this->Internal->InitializeDefinitions(parent);
 
+  this->StateSnapshot.InitializeFromParent();
+
   this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR",
                       this->GetCurrentSourceDirectory());
   this->AddDefinition("CMAKE_CURRENT_BINARY_DIR",
                       this->GetCurrentBinaryDirectory());
 
-  this->StateSnapshot.InitializeFromParent();
-
   this->SystemIncludeDirectories = parent->SystemIncludeDirectories;
 
   // define flags