mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
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:
committed by
Brad King
parent
b7d8c91822
commit
af39d1b993
@@ -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, " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user