From 488cc91689f9055724eb6d15eaf078fe3317c96b Mon Sep 17 00:00:00 2001 From: Martin Weber Date: Fri, 22 May 2020 19:12:22 +0200 Subject: [PATCH] Bug 559674: Fix: New console allocated even if one is given Change-Id: I922264bbff26e31d2a1a2aa000c3e8f272c1b5e9 Signed-off-by: Martin Weber --- .../is/core/internal/builtins/CompilerBuiltinsDetector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }