Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator run configuration cleared if cmake target is removed

QtCreator run configuration cleared if cmake target is removed

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 345 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NikolausDemmelN Offline
    NikolausDemmelN Offline
    NikolausDemmel
    wrote on last edited by
    #1

    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_subdirectory or 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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved