Ignore:
Timestamp:
Nov 30, 2009, 12:56:45 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Don't assume that relative paths in all OSes look like in *nix [vendor bug].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/makefiledeps.cpp

    r2 r362  
    625625                    if(try_local) {
    626626                        QString dir = findFileInfo(file->file).path();
    627                         if(QDir::isRelativePath(dir))
    628                             dir.prepend(qmake_getpwd() + "/");
    629                         if(!dir.endsWith("/"))
    630                             dir += "/";
    631                         QMakeLocalFileName f(dir + lfn.local());
     627                        QMakeLocalFileName f(QDir(dir).absoluteFilePath(lfn.local()));
    632628                        if(findFileInfo(f).exists()) {
    633629                            lfn = fixPathForFile(f);
     
    636632                    }
    637633                    if(!exists) { //path lookup
    638                         for(QList<QMakeLocalFileName>::Iterator it = depdirs.begin(); it != depdirs.end(); ++it) {
    639                             QMakeLocalFileName f((*it).real() + Option::dir_sep + lfn.real());
     634                        foreach(const QMakeLocalFileName &dd, depdirs) {
     635                            QMakeLocalFileName f(QDir(dd.real()).absoluteFilePath(lfn.real()));
    640636                            QFileInfo fi(findFileInfo(f));
    641637                            if(fi.exists() && !fi.isDir()) {
Note: See TracChangeset for help on using the changeset viewer.