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:
Eike Ziller
2019-05-20 14:36:42 +02:00
parent 96cf96d4eb
commit 13c92b4a30
+3 -1
View File
@@ -1082,7 +1082,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
this->GetTargetFilePath(this->TargetNames.SharedObject));
// If one link has to be created.
if (targetOutputReal == soName || targetOutput == soName) {
symlinkVars["SONAME"] = soName;
symlinkVars["SONAME"] =
this->GetLocalGenerator()->ConvertToOutputFormat(
soName, cmOutputConverter::SHELL);
} else {
symlinkVars["SONAME"].clear();
symlinks.push_back(soName);