forked from qt-creator/qt-creator
CMake: Update target list in build step list widget
Update the target list in the build step list widget for CMakeBuildSteps,
even when "current executable" meta-target is selected.
This change was cherry-picked from master branch:
ce7407dc03
Change-Id: Ifc1d8dc67894202eb38fe6088552797b198c7463
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -113,10 +113,10 @@ void CMakeBuildStep::handleBuildTargetChanges(bool success)
|
||||
{
|
||||
if (!success)
|
||||
return; // Do not change when parsing failed.
|
||||
if (isCurrentExecutableTarget(m_buildTarget))
|
||||
return; // Do not change just because a different set of build targets is there...
|
||||
if (!static_cast<CMakeProject *>(project())->buildTargetTitles().contains(m_buildTarget))
|
||||
if (!isCurrentExecutableTarget(m_buildTarget)
|
||||
&& !static_cast<CMakeProject *>(project())->buildTargetTitles().contains(m_buildTarget)) {
|
||||
setBuildTarget(allTarget());
|
||||
}
|
||||
emit buildTargetsChanged();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user