diff options
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 8a2ade8..3ac6d8e 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -47,9 +47,6 @@ void cmMakefileLibraryTargetGenerator::WriteRuleFiles() // write the per-target per-language flags this->WriteTargetLanguageFlags(); - // Write the dependency generation rule. - this->WriteTargetDependRules(); - // write the link rules // Write the rule for this target type. switch(this->Target->GetType()) @@ -85,6 +82,10 @@ void cmMakefileLibraryTargetGenerator::WriteRuleFiles() // Write clean target this->WriteTargetCleanRules(); + // Write the dependency generation rule. This must be done last so + // that multiple output pair information is available. + this->WriteTargetDependRules(); + // close the streams this->CloseFileStreams(); } |