summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-05-20 12:36:42 (GMT)
committerEike Ziller <eike.ziller@qt.io>2019-05-20 12:36:42 (GMT)
commit13c92b4a300934e9f8573dee01ab4ec5e06fa7a1 (patch)
tree45da1d7e4a3d899ee45e301e210998fc1cb4824f /Source/cmNinjaNormalTargetGenerator.cxx
parent96cf96d4ebd27a1cc725c938899a23a2ddd25334 (diff)
downloadCMake-13c92b4a300934e9f8573dee01ab4ec5e06fa7a1.zip
CMake-13c92b4a300934e9f8573dee01ab4ec5e06fa7a1.tar.gz
CMake-13c92b4a300934e9f8573dee01ab4ec5e06fa7a1.tar.bz2
Ninja: Fix creation of library symlinks in folders with spaces
The arguments to 'cmake -E cmake_symlink_library' must be properly quoted.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index dd63a54..98566c6 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -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);