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:
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) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue