Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.13.2
-
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
- replaces
-
QTCREATORBUG-24959 Selected build targets cannot be unselected from targets list when removing them from CMakeLists.txt and running CMake
- Closed
For Gerrit Dashboard: QTCREATORBUG-24914 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
356970,2 | CMakePM: Keep always created run configurations up to date | 5.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |