mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fix include paths to make them relative to the project file for Qt.
Change-Id: I81c334a2c0ed85487a60ef14a6f28d7b87b6fbf3
This commit is contained in:
parent
78ba80e1d5
commit
0868cf82ee
1 changed files with 2 additions and 5 deletions
|
@ -277,11 +277,8 @@ public class QtBuildConfiguration extends CBuildConfiguration
|
||||||
for (int i = 0; i < includePaths.length; ++i) {
|
for (int i = 0; i < includePaths.length; ++i) {
|
||||||
Path path = Paths.get(includePaths[i]);
|
Path path = Paths.get(includePaths[i]);
|
||||||
if (!path.isAbsolute()) {
|
if (!path.isAbsolute()) {
|
||||||
try {
|
Path projectDir = getProjectFile().getParent();
|
||||||
includePaths[i] = getBuildDirectory().resolve(path).toString();
|
includePaths[i] = projectDir.resolve(path).toString();
|
||||||
} catch (CoreException e) {
|
|
||||||
Activator.log(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue