Reputation: 96576
I have a CMake project in CLion. Under Preferences->Build, Execution, Deployment I have two configurations - Debug
and Release
:
The Configuration:
drop-down has the standard CMake build types (Default, Debug, Release, RelWithDebInfo, MinSizeRel) and you can type your own.
I want to have two different configurations - both Release
but with different CMake options. I can do that, but they both end up being called Release
. If I change the Configuration
to something like Release Engineering
then CLion passes "-DCMAKE_BUILD_TYPE=Release Engineering"
to CMake which obviously isn't what I want.
Even if I do make a Release Engineering
config like this:
Then it shows up in the Run/Debug Configurations dialog as Release
, and you can't really select it - they're obviously indexed by value rather than position so it just uses the first Release
entry.
Is there any way around this annoyance?
Edit: Also if I make a new RelWithDebInfo configuration it doesn't show up at all in the Run/Debug Configurations dialog.
Upvotes: 1
Views: 1691
Reputation: 85
Did you create a Build type with the name Release Engineering
? Space is often used in CMake as separator between arguments. Have you tried creating a Build type without space, e.g. ReleaseEngineering
?
Upvotes: 0
Reputation: 96576
Ugh seems to be a flaw of CLion:
The original bug report is from March 2015 so I'm not holding my breath.
Upvotes: 2