Missing "release" build switch on some sub-projects

Answered

In a project with multiple subprojects I see the switch to release build only some projects but not all of them. I checked the settings "Build, Execution, Deployment - CMake" where I see both release and debug.

Any hints where I can add release build option to other projects?

0
1 comment

Hi Tobias!

CLion shows only "applicable" CMake profiles based on the selected run configuration. It is intended behavior to avoid misconfigurations, but we understand that this might be confusing. We have several related issues in our tracker: https://youtrack.jetbrains.com/issue/CPP-26014, https://youtrack.jetbrains.com/issue/CPP-31777. 

So when you don't see the Release option in the drop-down, please check if the selected run/debug configuration can actually be used in this profile.

And feel free to comment or upvote the mentioned issues. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

Please sign in to leave a comment.