From 54a7f61a68c8815f78e706b0eb03a2a86779a269 Mon Sep 17 00:00:00 2001 From: Malte Grave Date: Wed, 30 Aug 2023 21:36:57 +0200 Subject: [PATCH] CMake: Fixed the correct path for starting 'cmake-gui' This PR fixed the wrong source flag which was set by spawning the cmake-gui command. Closes #532 --- cmake/org.eclipse.cdt.cmake.ui/META-INF/MANIFEST.MF | 2 +- .../cdt/cmake/internal/ui/properties/CMakePropertyPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/org.eclipse.cdt.cmake.ui/META-INF/MANIFEST.MF b/cmake/org.eclipse.cdt.cmake.ui/META-INF/MANIFEST.MF index c126d7d69a6..21ec9c1e045 100644 --- a/cmake/org.eclipse.cdt.cmake.ui/META-INF/MANIFEST.MF +++ b/cmake/org.eclipse.cdt.cmake.ui/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.cdt.cmake.ui;singleton:=true -Bundle-Version: 1.4.100.qualifier +Bundle-Version: 1.4.200.qualifier Bundle-Activator: org.eclipse.cdt.cmake.ui.internal.Activator Bundle-Vendor: %providerName Require-Bundle: org.eclipse.core.runtime, diff --git a/cmake/org.eclipse.cdt.cmake.ui/src/org/eclipse/cdt/cmake/internal/ui/properties/CMakePropertyPage.java b/cmake/org.eclipse.cdt.cmake.ui/src/org/eclipse/cdt/cmake/internal/ui/properties/CMakePropertyPage.java index 290aa8af8c8..7829e864f76 100644 --- a/cmake/org.eclipse.cdt.cmake.ui/src/org/eclipse/cdt/cmake/internal/ui/properties/CMakePropertyPage.java +++ b/cmake/org.eclipse.cdt.cmake.ui/src/org/eclipse/cdt/cmake/internal/ui/properties/CMakePropertyPage.java @@ -134,7 +134,7 @@ public void widgetSelected(SelectionEvent e) { String sourceDir = project.getLocation().toOSString(); String buildDir = project.getLocation().append("build").append(configName).toOSString(); //$NON-NLS-1$ - Runtime.getRuntime().exec(new String[] { "cmake-gui", "-H" + sourceDir, "-B" + buildDir }); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + Runtime.getRuntime().exec(new String[] { "cmake-gui", "-S" + sourceDir, "-B" + buildDir }); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } catch (CoreException | IOException e1) { MessageDialog.openError(parent.getShell(), Messages.CMakePropertyPage_FailedToStartCMakeGui_Title,