mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -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));
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user