Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25906

cmake targets not update after reconfigure

    XMLWordPrintable

Details

    • 20366297ed961a4726e017c43f1c366e4edcb31e (qt-creator/qt-creator/5.0)

    Description

      my cmake projects allow certain targets to be switched by depending on cmake configurations.
      something like:

      option( FOO "" ON )
      
      if (FOO)
        add_executable(bar)
      endif()
      

      with qtcreator 5.0, i'm seeing the following behaviour:

      • the locator bar is up to date: if FOO==OFF, then `cm` does not list the target bar
      • the "projects -> run settings" page however still lists `bar`, if `FOO==OFF`
      • the target selector (the icon above the "RUN" icon) also lists `bar`, if `FOO==OFF`

      this is a bit confusing, as a user can select targets, which are not available anymore and the target list is rather bloated (in my cases i end up with dozens of non-existent targets)

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-25906
        # Subject Branch Project Status CR V

        Activity

          People

            cadam Cristian Adam
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes