فهرست منبع

Merge topic 'ninja-lib-symlink-space'

13c92b4a30 Ninja: Fix creation of library symlinks in folders with spaces

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3341
Brad King 6 سال پیش
والد
کامیت
021c61408c
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      Source/cmNinjaNormalTargetGenerator.cxx

+ 3 - 1
Source/cmNinjaNormalTargetGenerator.cxx

@@ -1132,7 +1132,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);