Selaa lähdekoodia

Merge topic 'pch-reuse-multi' into release-3.17

7a1c7736cb PCH: Fix REUSE_FROM in multi-config generators

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4717
Brad King 5 vuotta sitten
vanhempi
sitoutus
3fa0381e9e
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      Source/cmLocalGenerator.cxx

+ 3 - 1
Source/cmLocalGenerator.cxx

@@ -2604,9 +2604,11 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
             std::string pchSourceObj =
               reuseTarget->GetPchFileObject(config, lang);
 
+            const std::string configUpper = cmSystemTools::UpperCase(config);
+
             // Link to the pch object file
             target->Target->AppendProperty(
-              "LINK_FLAGS",
+              cmStrCat("LINK_FLAGS_", configUpper),
               cmStrCat(" ", this->ConvertToOutputFormat(pchSourceObj, SHELL)),
               true);
           }