diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-05-20 12:36:42 (GMT) |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-05-20 12:36:42 (GMT) |
commit | 13c92b4a300934e9f8573dee01ab4ec5e06fa7a1 (patch) | |
tree | 45da1d7e4a3d899ee45e301e210998fc1cb4824f /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 96cf96d4ebd27a1cc725c938899a23a2ddd25334 (diff) | |
download | CMake-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.cxx | 4 |
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); |