1
0
Эх сурвалжийг харах

Ninja: Fix creation of library symlinks in folders with spaces

The arguments to 'cmake -E cmake_symlink_library' must be properly
quoted.
Eike Ziller 6 жил өмнө
parent
commit
13c92b4a30

+ 3 - 1
Source/cmNinjaNormalTargetGenerator.cxx

@@ -1082,7 +1082,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
         this->GetTargetFilePath(this->TargetNames.SharedObject));
         this->GetTargetFilePath(this->TargetNames.SharedObject));
       // If one link has to be created.
       // If one link has to be created.
       if (targetOutputReal == soName || targetOutput == soName) {
       if (targetOutputReal == soName || targetOutput == soName) {
-        symlinkVars["SONAME"] = soName;
+        symlinkVars["SONAME"] =
+          this->GetLocalGenerator()->ConvertToOutputFormat(
+            soName, cmOutputConverter::SHELL);
       } else {
       } else {
         symlinkVars["SONAME"].clear();
         symlinkVars["SONAME"].clear();
         symlinks.push_back(soName);
         symlinks.push_back(soName);