ENH: use fullpaths based on the actual current directory

This commit is contained in:
Bill Hoffman 2003-12-22 13:59:29 -05:00
parent 4f8afac655
commit f0bc1ed9b2

View File

@ -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;