summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-25 19:51:33 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-25 19:51:33 (GMT)
commit775f012fae7b789301285420d60707c0246977f9 (patch)
tree913a4ec0b9504e7292da61c7b0f5b2751db6dc15 /Source/cmGlobalGenerator.cxx
parentf4eb541880bfc89456e26d8b3eb62ec590571da5 (diff)
downloadCMake-775f012fae7b789301285420d60707c0246977f9.zip
CMake-775f012fae7b789301285420d60707c0246977f9.tar.gz
CMake-775f012fae7b789301285420d60707c0246977f9.tar.bz2
BUG: Need to create global targets before AddHelperCommands is called. We should investigate creating global targets at the beginning of the configure step even if their commands are not populated or if they will not actually be generated later.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 4f2e6f4..06679fd 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -734,19 +734,6 @@ void cmGlobalGenerator::Generate()
{
// For each existing cmLocalGenerator
unsigned int i;
-
- // Add generator specific helper commands
- for (i = 0; i < this->LocalGenerators.size(); ++i)
- {
- this->LocalGenerators[i]->AddHelperCommands();
- }
-
- // Trace the dependencies, after that no custom commands should be added
- // because their dependencies might not be handled correctly
- for (i = 0; i < this->LocalGenerators.size(); ++i)
- {
- this->LocalGenerators[i]->TraceDependencies();
- }
// Consolidate global targets
cmTargets globalTargets;
@@ -775,6 +762,19 @@ void cmGlobalGenerator::Generate()
(*targets)[tit->first].SetMakefile(mf);
}
}
+
+ // Add generator specific helper commands
+ for (i = 0; i < this->LocalGenerators.size(); ++i)
+ {
+ this->LocalGenerators[i]->AddHelperCommands();
+ }
+
+ // Trace the dependencies, after that no custom commands should be added
+ // because their dependencies might not be handled correctly
+ for (i = 0; i < this->LocalGenerators.size(); ++i)
+ {
+ this->LocalGenerators[i]->TraceDependencies();
+ }
// Compute the manifest of main targets generated.
for (i = 0; i < this->LocalGenerators.size(); ++i)