From 13c92b4a300934e9f8573dee01ab4ec5e06fa7a1 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 20 May 2019 14:36:42 +0200 Subject: Ninja: Fix creation of library symlinks in folders with spaces The arguments to 'cmake -E cmake_symlink_library' must be properly quoted. --- Source/cmNinjaNormalTargetGenerator.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v0.12