summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkLineComputer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-12 13:31:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-12 13:32:01 (GMT)
commit1e3af78f63c977120c67de569dc0713c1cd4d36d (patch)
treecf870c6a5b4551e14757f9cb7b70e067ac948b00 /Source/cmLinkLineComputer.cxx
parentf86d8009c6a4482c81221114a2b04b375564cc94 (diff)
parentaf39d1b99354e11d9415725f4338af065c79eb87 (diff)
downloadCMake-1e3af78f63c977120c67de569dc0713c1cd4d36d.zip
CMake-1e3af78f63c977120c67de569dc0713c1cd4d36d.tar.gz
CMake-1e3af78f63c977120c67de569dc0713c1cd4d36d.tar.bz2
Merge topic 'swift-link-line-spaces'
af39d1b993 Swift: Fix quoting of library search paths with spaces Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4469
Diffstat (limited to 'Source/cmLinkLineComputer.cxx')
-rw-r--r--Source/cmLinkLineComputer.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmLinkLineComputer.cxx b/Source/cmLinkLineComputer.cxx
index 86ee953..480c005 100644
--- a/Source/cmLinkLineComputer.cxx
+++ b/Source/cmLinkLineComputer.cxx
@@ -156,9 +156,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, " ");
}
}