Browse Source

FASTBuild: Expand TargetLabels and Config for Link Commands

Martin Duffy 3 months ago
parent
commit
bd24854d56
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmFastbuildNormalTargetGenerator.cxx

+ 3 - 0
Source/cmFastbuildNormalTargetGenerator.cxx

@@ -250,6 +250,9 @@ bool cmFastbuildNormalTargetGenerator::DetectBaseLinkerCommand(
   cmRulePlaceholderExpander::RuleVariables vars;
   vars.CMTargetName = this->GeneratorTarget->GetName().c_str();
   vars.CMTargetType = cmState::GetTargetTypeName(targetType).c_str();
+  vars.CMTargetLabels =
+    this->GetGeneratorTarget()->GetTargetLabelsString().c_str();
+  vars.Config = Config.c_str();
   vars.Language = linkLanguage.c_str();
   std::string const manifests =
     cmJoin(this->GetManifestsAsFastbuildPath(), " ");