<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QtCreator run configuration cleared if cmake target is removed]]></title><description><![CDATA[<p dir="auto">I'm running QtCreator 7.0.2 with a cmake project.</p>
<p dir="auto">Whenever cmake is run and an executable target that used to exists is removed, QtCreator removes the corresponding run configurations from the project.</p>
<p dir="auto">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.</p>
<p dir="auto">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 <code>add_subdirectory</code> or similar. When the cmake run succeeds, the corresponding run configurations are gone.</p>
<p dir="auto">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).</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/topic/139124/qtcreator-run-configuration-cleared-if-cmake-target-is-removed</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 12:41:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139124.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Sep 2022 12:41:56 GMT</pubDate><ttl>60</ttl></channel></rss>