[2016.3 CLion] multiple configurations

已回答

I've updated CLion at the 2016.3 version yesterday.

Before the update I was using two different build targets with 2 different build configurations: the first was setting to produce a release binary the second to produce a debug version. 

After the update CLion tells me that it cannot found the Release configuration. 

I want to use Debug when I build the debug target and Release when I build the release target. 

In attachment you will found my configuration.

2
Avatar
Permanently deleted user

I have this exact same issue. I create a project with jet brains, and only the Debug Configuration setting is available.

0
Avatar
Permanently deleted user

Jetbrains have altered the way that configurations are handled in CLion as of 2016.3

To change to Release configuration, you have to go to File > Settings > Build, Execution, Deployment > CMake.

Yes, you have to do have to change it everytime you want to switch but I've found the quickest workaround is to add the "CMake settings" button beside the "Select Run/Debug Configuration" button. You can customise this under File > Settings > Appearance & Behaviour > Menus and Toolbars > Main Toolbar > Toolbar Run Actions.

0
Avatar
Permanently deleted user

So we have to set this in multiple places though. In the executable configuration, the default "build all" configuration both after changed the setting in the CMake setting dialog. Why was this changed from a single drop down select? This update makes changing the build configuration awkward and clumsy.

0

Since CLion 2016.3 release CLion allows only one configuration at a time. Please find out the reasons for such behaviour in our blog post: https://blog.jetbrains.com/clion/2016/10/clion-2016-3-eap-cmake-overload-resolution/. We have the issue in the tracker: https://youtrack.jetbrains.com/issue/CPP-3159. Feel free to comment or upvote and sorry for the inconvenience.

You can create two different CMake output directories with different configurations and switch between them (still manually, but not regenerating everything from scratch every time).

0
Avatar
Permanently deleted user

Well this is frustrating. I generally build/run in Release mode until I encounter problems, flip over to Debug, flip back to Release afterwards. Having to pop up the entire settings window is annoying, and little annoyances eventually build up into "I don't want to use this program anymore".

I'd really like to see the old behavior back.

0

Yes, it is totally frustrating to have to go through multiple dialogs and steps in order to switch back and forth between debug and release. This is a very common task and should be as painless as possible. Also, when regenerating and switching back and forth, the project seems to require to be rebuilt also.

Please fix this.

0
Avatar
Permanently deleted user

This limitation is absolutely horrible and significantly broken.   Sometimes I have to restart the IDE in order to get back to the Debug configuration.     It is really really hampering productivity.   Please fix this.

0

Please, check our new CLion 2016.3.2 Early Access Program build that includes an ability to add CMake configurations. Check our blog post for more details: https://blog.jetbrains.com/clion/2016/12/clion-2016-3-2-eap/#cmake. Please, let us know if the solution fits your workflow. It would help us to make CLion better!

0
Avatar
Permanently deleted user

Anna, I've downloaded the latest 3.2 EAP and it is much better.    I can now work with and change the configuration at ease. Thank you.   This is good.

 

0

请先登录再写评论。