GUI: Fixed problem with absolute build dir
This commit is contained in:
parent
d3c9d06aa4
commit
09cdead6cb
|
@ -847,10 +847,14 @@ Settings MainWindow::getCppcheckSettings()
|
|||
|
||||
const QString &buildDir = mProjectFile->getBuildDir();
|
||||
if (!buildDir.isEmpty()) {
|
||||
if (QDir(buildDir).isAbsolute()) {
|
||||
result.buildDir = buildDir.toStdString();
|
||||
} else {
|
||||
QString prjpath = QFileInfo(mProjectFile->getFilename()).absolutePath();
|
||||
result.buildDir = (prjpath + '/' + buildDir).toStdString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Include directories (and files) are searched in listed order.
|
||||
// Global include directories must be added AFTER the per project include
|
||||
|
|
Loading…
Reference in New Issue