mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 00:58:59 -05:00
Ninja: Fix creation of library symlinks in folders with spaces
The arguments to 'cmake -E cmake_symlink_library' must be properly quoted.
This commit is contained in:
@@ -1082,7 +1082,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||||||
this->GetTargetFilePath(this->TargetNames.SharedObject));
|
this->GetTargetFilePath(this->TargetNames.SharedObject));
|
||||||
// If one link has to be created.
|
// If one link has to be created.
|
||||||
if (targetOutputReal == soName || targetOutput == soName) {
|
if (targetOutputReal == soName || targetOutput == soName) {
|
||||||
symlinkVars["SONAME"] = soName;
|
symlinkVars["SONAME"] =
|
||||||
|
this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||||
|
soName, cmOutputConverter::SHELL);
|
||||||
} else {
|
} else {
|
||||||
symlinkVars["SONAME"].clear();
|
symlinkVars["SONAME"].clear();
|
||||||
symlinks.push_back(soName);
|
symlinks.push_back(soName);
|
||||||
|
|||||||
Reference in New Issue
Block a user