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

cmake: removed targets, still show up in kit selector, and Projects->Run->Run configuration

    XMLWordPrintable

Details

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

    Description

      Hi,

      consider the following CMakeLists.txt with 6 targets:

      cmake_minimum_required(VERSION 3.5)
      project(go1 LANGUAGES CXX)
      set(CMAKE_CXX_STANDARD 11)
      set(CMAKE_CXX_STANDARD_REQUIRED ON)
      
      add_executable(go1 main.cpp)
      add_executable(go2 main.cpp)
      add_executable(go3 main.cpp)
      add_executable(go4 main.cpp)
      add_executable(go5 main.cpp)
      add_executable(go6 main.cpp)

      I can see the 6 targets (go1 to go6)  nicely in 3 places:

       

      a) Project sidebar (each target has a small hammer icon)

      b) Kit selector: showing: Kit | Build | Run       (under Run)

      c) Projects->Run->Run configuration

       

      Now go ahead and delete 3 targets, by changing the CMakeLists.txt to the following:

       

      cmake_minimum_required(VERSION 3.5)
      project(go1 LANGUAGES CXX)
      set(CMAKE_CXX_STANDARD 11)
      set(CMAKE_CXX_STANDARD_REQUIRED ON)
      
      add_executable(go1 main.cpp)
      add_executable(go2 main.cpp)
      add_executable(go3 main.cpp)
      

      Targets go4, go5 and go6 no longer exist, and are properly removed from

      a) Project sidebar.

      But the targets are not properly removed from

      b) Kit selector: showing: Kit | Build | Run       (under Run)

      c) Projects->Run->Run configuration

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              cadam Cristian Adam
              an A. N.
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes