Jelajahi Sumber

ENH: use fullpaths based on the actual current directory

Bill Hoffman 22 tahun lalu
induk
melakukan
f0bc1ed9b2
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      Source/cmLocalUnixMakefileGenerator.cxx

+ 4 - 1
Source/cmLocalUnixMakefileGenerator.cxx

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