mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Generate target-wide flags before individual build rules
This switches the internal generation order but does not affect the results. The new order ensures that any internal state changed by generating target-wide flags is known when the individual rules that use those flags are generated.
This commit is contained in:
parent
d099546450
commit
6e8a67f99a
@ -47,12 +47,12 @@ void cmMakefileExecutableTargetGenerator::WriteRuleFiles()
|
||||
// write rules used to help build object files
|
||||
this->WriteCommonCodeRules();
|
||||
|
||||
// write in rules for object files and custom commands
|
||||
this->WriteTargetBuildRules();
|
||||
|
||||
// write the per-target per-language flags
|
||||
this->WriteTargetLanguageFlags();
|
||||
|
||||
// write in rules for object files and custom commands
|
||||
this->WriteTargetBuildRules();
|
||||
|
||||
// write the link rules
|
||||
this->WriteExecutableRule(false);
|
||||
if(this->Target->NeedRelinkBeforeInstall(this->ConfigName))
|
||||
|
@ -52,12 +52,12 @@ void cmMakefileLibraryTargetGenerator::WriteRuleFiles()
|
||||
// write rules used to help build object files
|
||||
this->WriteCommonCodeRules();
|
||||
|
||||
// write in rules for object files and custom commands
|
||||
this->WriteTargetBuildRules();
|
||||
|
||||
// write the per-target per-language flags
|
||||
this->WriteTargetLanguageFlags();
|
||||
|
||||
// write in rules for object files and custom commands
|
||||
this->WriteTargetBuildRules();
|
||||
|
||||
// write the link rules
|
||||
// Write the rule for this target type.
|
||||
switch(this->Target->GetType())
|
||||
|
Loading…
Reference in New Issue
Block a user