summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-07 11:10:24 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-08-29 15:18:02 (GMT)
commit6cf55644ef9dda817ed88fe70abf9da235de1a1a (patch)
tree7835685ba0e4a99ab9809931056e94a55c307e54 /Source/cmake.cxx
parent549b95f115d1f98a68ed390816d5ac9e1eb38806 (diff)
downloadCMake-6cf55644ef9dda817ed88fe70abf9da235de1a1a.zip
CMake-6cf55644ef9dda817ed88fe70abf9da235de1a1a.tar.gz
CMake-6cf55644ef9dda817ed88fe70abf9da235de1a1a.tar.bz2
Generate graphviz files at generate time, not configure time.
The feature needs access to all link libraries. In the future that will only be possible to calculate at generate-time. Even when the files were generated at configure time, they were generated after user code in CMakeLists files were generated. No policy is needed to handle manipulation of the files from CMake code, because that was never possible.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 290aff0..8b8cb01 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2437,11 +2437,6 @@ int cmake::ActualConfigure()
{
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())
{
return -1;
@@ -2604,6 +2599,11 @@ int cmake::Generate()
return -1;
}
this->GlobalGenerator->Generate();
+ if ( !this->GraphVizFile.empty() )
+ {
+ std::cout << "Generate graphviz: " << this->GraphVizFile << std::endl;
+ this->GenerateGraphViz(this->GraphVizFile.c_str());
+ }
if(this->WarnUnusedCli)
{
this->RunCheckForUnusedVariables();