瀏覽代碼

Merge topic 'graphviz-at-generate-time'

6cf5564 Generate graphviz files at generate time, not configure time.
Brad King 12 年之前
父節點
當前提交
b61960564a
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      Source/cmake.cxx

+ 5 - 5
Source/cmake.cxx

@@ -2437,11 +2437,6 @@ int cmake::ActualConfigure()
     {
     {
     this->CacheManager->SaveCache(this->GetHomeOutputDirectory());
     this->CacheManager->SaveCache(this->GetHomeOutputDirectory());
     }
     }
-  if ( !this->GraphVizFile.empty() )
-    {
-    std::cout << "Generate graphviz: " << this->GraphVizFile << std::endl;
-    this->GenerateGraphViz(this->GraphVizFile.c_str());
-    }
   if(cmSystemTools::GetErrorOccuredFlag())
   if(cmSystemTools::GetErrorOccuredFlag())
     {
     {
     return -1;
     return -1;
@@ -2604,6 +2599,11 @@ int cmake::Generate()
     return -1;
     return -1;
     }
     }
   this->GlobalGenerator->Generate();
   this->GlobalGenerator->Generate();
+  if ( !this->GraphVizFile.empty() )
+    {
+    std::cout << "Generate graphviz: " << this->GraphVizFile << std::endl;
+    this->GenerateGraphViz(this->GraphVizFile.c_str());
+    }
   if(this->WarnUnusedCli)
   if(this->WarnUnusedCli)
     {
     {
     this->RunCheckForUnusedVariables();
     this->RunCheckForUnusedVariables();