Swift: Fix quoting of library search paths with spaces

The library search paths added by commit 2746c61e6d (Swift: Add library
search paths for dependencies, 2019-06-09, v3.16.0-rc1~561^2) need to be
quoted properly on command lines to handle spaces and such.  This was
already done by `cmLinkLineComputer::ComputeLinkPath` for
non-Swift-specific link directories.
This commit is contained in:
Saleem Abdulrasool
2020-03-11 20:25:34 -07:00
committed by Brad King
parent b7d8c91822
commit af39d1b993
+5 -3
View File
@@ -142,9 +142,11 @@ void cmLinkLineComputer::ComputeLinkPath(
type = cmStateEnums::ImportLibraryArtifact; type = cmStateEnums::ImportLibraryArtifact;
} }
linkPathNoBT += cmStrCat( linkPathNoBT +=
" ", libPathFlag, item.Target->GetDirectory(cli.GetConfig(), type), cmStrCat(" ", libPathFlag,
libPathTerminator, " "); this->ConvertToOutputForExisting(
item.Target->GetDirectory(cli.GetConfig(), type)),
libPathTerminator, " ");
} }
} }