Browse Source

Merge branch 'swift-link-line-spaces' into release-3.16

Merge-request: !4469
Brad King 5 years ago
parent
commit
5a896bbc55
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Source/cmLinkLineComputer.cxx

+ 5 - 3
Source/cmLinkLineComputer.cxx

@@ -142,9 +142,11 @@ void cmLinkLineComputer::ComputeLinkPath(
           type = cmStateEnums::ImportLibraryArtifact;
         }
 
-        linkPathNoBT += cmStrCat(
-          " ", libPathFlag, item.Target->GetDirectory(cli.GetConfig(), type),
-          libPathTerminator, " ");
+        linkPathNoBT +=
+          cmStrCat(" ", libPathFlag,
+                   this->ConvertToOutputForExisting(
+                     item.Target->GetDirectory(cli.GetConfig(), type)),
+                   libPathTerminator, " ");
       }
     }