When you create a new project you first get a default Run IBuildConfiguration with an empty name “” which is paired with a ICBuildCongiruation with named “default”.
When you switch in the LaunchBar the combo-box to Debug a second IBuildConfiguration is created automatically with a name like “org.eclipse.cdt.cmake.core.provider/cmake.debug.linux.x86_64”, paired to a ICBuildConfiguration named “cmake.debug.linux.x86_64”.
So you get two build configuration pairs and one launch configuration. The build configuration that is picked for building depends on the launch mode (Run/Debug) you choose in the launch bar.
In core build cmake/make projects the border between building and launching has been blurred, because launch configurations keep build settings. In Managed projects the separation is clearer.
For me the default launch configurations are only good for building, not for launching. In my case the built binary must not be called directly. So I have to create normal C/C++ (Remote) Application launch configurations for the launching.
--
Erwin Waterlander Intel
erwin.waterlander@xxxxxxxxx
http://www.intel.com/ The Netherlands
From: cdt-dev <cdt-dev-bounces@xxxxxxxxxxx> On Behalf Of
Kondal Kolipaka
Sent: Friday, December 02, 2022 15:58
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: [cdt-dev] Multiple build configurations for CMake Core build projects
Hi Folks,
Is there any way to handle multiple build configurations(Debug/Release/Custom) for CMake Core build projects?
New CMake "Build Settings" tab allows us to configure specific CMake arguments(Additional CMake arguments, Build command, etc), and allow us "duplicate" and create a new configuration. However, everything is getting saved to the same "default"
CMake configuration(ICBuildConfiguration). Though there are multiple launch configurations getting created all of them are referring to the same build configuration.
so, how do I manage multiple build configurations with different CMake build commands from Eclipse CDT?
One way I could think of is to map the launch configuration and build the configuration and save it <ILaunchConfiguration, ICBuildConfiguration>
Any pointers on this would be helpful.