forked from qt-creator/qt-creator
Add method to verify existence of CMake targets
* Add a simple method to test whether a CMake target exists. Reviewed-by: dt
This commit is contained in:
@@ -273,7 +273,7 @@ ProjectExplorer::BuildConfiguration *CMakeBuildConfigurationFactory::create(cons
|
||||
m_project->parseCMakeLists();
|
||||
|
||||
// Default to all
|
||||
if (m_project->targets().contains("all"))
|
||||
if (m_project->hasTarget("all"))
|
||||
makeStep->setBuildTarget("all", true);
|
||||
return bc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user