mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
check for container incase some one builds a target before adding
This commit is contained in:
parent
9acbfd6c2d
commit
963a19457b
1 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,9 @@ public class MakeTarget implements IMakeTarget {
|
||||||
info.setStopOnError(isStopOnError);
|
info.setStopOnError(isStopOnError);
|
||||||
info.setFullBuildEnable(true);
|
info.setFullBuildEnable(true);
|
||||||
info.setFullBuildTarget(target);
|
info.setFullBuildTarget(target);
|
||||||
info.setBuildLocation(container.getLocation());
|
if ( container != null) {
|
||||||
|
info.setBuildLocation(container.getProjectRelativePath());
|
||||||
|
}
|
||||||
IMakeBuilderInfo projectInfo = MakeCorePlugin.createBuildInfo(project, builderID);
|
IMakeBuilderInfo projectInfo = MakeCorePlugin.createBuildInfo(project, builderID);
|
||||||
info.setErrorParsers(projectInfo.getErrorParsers());
|
info.setErrorParsers(projectInfo.getErrorParsers());
|
||||||
project.build(IncrementalProjectBuilder.FULL_BUILD, builderID, infoMap, monitor);
|
project.build(IncrementalProjectBuilder.FULL_BUILD, builderID, infoMap, monitor);
|
||||||
|
|
Loading…
Add table
Reference in a new issue