mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-14 10:19:56 -06:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user