QtCreator run configuration cleared if cmake target is removed
-
I'm running QtCreator 7.0.2 with a cmake project.
Whenever cmake is run and an executable target that used to exists is removed, QtCreator removes the corresponding run configurations from the project.
I can see how that can be useful for the automatically created run configurations that weren't customized. But it's quite irritating when I've customized a run configuration (e.g. set up some command line arguments). For me it's quite frequent that targets change, for example when I switch between different feature branches with different sets of targets.
This would also happen when I rename a target in cmake. Instead of retaining the run configuration and manually updating the executable, I have to recreate it. Another case is when you are debugging your cmake configuration itself, and maybe temporarily commenting out some
add_subdirectoryor similar. When the cmake run succeeds, the corresponding run configurations are gone.I think this didn't always be the case. Maybe I'm wrong, but I seem to remember that in some earlier version the run configurations were kept (but the executable was shown in red when it didn't exist as a target).
Is there some way to make QtCreator not automatically remove the run configurations? I checked in the settings, but didn't find anything that sounded related.