1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Fix include paths to make them relative to the project file for Qt.

Change-Id: I81c334a2c0ed85487a60ef14a6f28d7b87b6fbf3
This commit is contained in:
Doug Schaefer 2016-10-20 10:23:15 -04:00
parent 78ba80e1d5
commit 0868cf82ee

View file

@ -277,11 +277,8 @@ public class QtBuildConfiguration extends CBuildConfiguration
for (int i = 0; i < includePaths.length; ++i) {
Path path = Paths.get(includePaths[i]);
if (!path.isAbsolute()) {
try {
includePaths[i] = getBuildDirectory().resolve(path).toString();
} catch (CoreException e) {
Activator.log(e);
}
Path projectDir = getProjectFile().getParent();
includePaths[i] = projectDir.resolve(path).toString();
}
}