浏览代码

ENH: make new relative rpath work with spaces

Bill Hoffman 22 年之前
父节点
当前提交
a5fa6e2fe2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmLocalUnixMakefileGenerator.cxx

+ 2 - 2
Source/cmLocalUnixMakefileGenerator.cxx

@@ -738,9 +738,9 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
         linkLibs += libPathFlag;
         linkLibs += libPathFlag;
         if(outputRuntime)
         if(outputRuntime)
           {
           {
-          std::string rpath = "\"`cd \"$(PWD)/";
+          std::string rpath = "\"`cd ";
           rpath += libpath;
           rpath += libpath;
-          rpath += "\";pwd`\"";
+          rpath += ";pwd`\"";
           runtimeDirs.push_back( rpath );
           runtimeDirs.push_back( rpath );
           }
           }
         }
         }