diff --git a/cmake/org.eclipse.cdt.cmake.is.core/src/main/java/org/eclipse/cdt/cmake/is/core/internal/builtins/CompilerBuiltinsDetector.java b/cmake/org.eclipse.cdt.cmake.is.core/src/main/java/org/eclipse/cdt/cmake/is/core/internal/builtins/CompilerBuiltinsDetector.java index 1d0a96b5352..4eee092426a 100644 --- a/cmake/org.eclipse.cdt.cmake.is.core/src/main/java/org/eclipse/cdt/cmake/is/core/internal/builtins/CompilerBuiltinsDetector.java +++ b/cmake/org.eclipse.cdt.cmake.is.core/src/main/java/org/eclipse/cdt/cmake/is/core/internal/builtins/CompilerBuiltinsDetector.java @@ -248,7 +248,8 @@ public class CompilerBuiltinsDetector { return null; // no console to allocate } else { IProject project = buildConfiguration.getProject(); - if (console != null) { + if (console == null) { + // need to allocate console, but none is given String consoleId = CONSOLE_ID + "." + project.getName(); console = CCorePlugin.getDefault().getConsole(CONSOLE_ID, consoleId, null, null); }