Skip to content

Commit 4ebdbec

Browse files
committed
Update dmake to use basepath in lib.pri.
1 parent 67713e4 commit 4ebdbec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/dmake.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,21 @@ int main(int argc, char **argv)
140140
fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
141141
fout1 << "LIBS += -L../externals -lpcre\n";
142142
fout1 << "INCLUDEPATH += ../externals\n";
143-
fout1 << "HEADERS += $$PWD/check.h \\\n";
143+
fout1 << "HEADERS += $${BASEPATH}check.h \\\n";
144144
for (unsigned int i = 0; i < libfiles.size(); ++i)
145145
{
146146
std::string fname(libfiles[i].substr(4));
147147
if (fname.find(".cpp") == std::string::npos)
148148
continue; // shouldn't happen
149149
fname.erase(fname.find(".cpp"));
150-
fout1 << std::string(11, ' ') << "$$PWD/" << fname << ".h";
150+
fout1 << std::string(11, ' ') << "$${BASEPATH}" << fname << ".h";
151151
if (i < libfiles.size() - 1)
152152
fout1 << " \\\n";
153153
}
154154
fout1 << "\n\nSOURCES += ";
155155
for (unsigned int i = 0; i < libfiles.size(); ++i)
156156
{
157-
fout1 << "$$PWD/" << libfiles[i].substr(4);
157+
fout1 << "$${BASEPATH}" << libfiles[i].substr(4);
158158
if (i < libfiles.size() - 1)
159159
fout1 << " \\\n" << std::string(11, ' ');
160160
}

0 commit comments

Comments
 (0)