Two different builts in seperate build directories

I have a project that I can build for ARM or Linux. All I need is clion to have two different builds, each in separate directories, and with one CMake flag different. I tried setting this up in the build > generation menu, by having Debug build in one folder and Release in another, and by adding my flag to one of them (pictures below)



What I'd then like to do is create two build configurations, each that runs All Targets, but one with "Debug" and one with "Release". However, Release won't show up as an option!

 


Only Debug is available. I feel like this *should* work? Any other way for me to have *two* cmake build directories with one differing flag??

0

This looks suspicious: 'Configuration' combo box should contain all configurations registered in CMake settings.

Do you have any errors/warnings in CMake tool window? Do you see both Release and Debug tabs there? 

0
Avatar
Permanently deleted user

They are both there, and neither give errors.

0

That's strange, if you change the 'Target:' field to anything else, is the list of configurations updated?

0

请先登录再写评论。