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:
Tobias Hunger
2010-01-14 15:38:31 +01:00
parent ea9f96a395
commit b1e1f44a8d
3 changed files with 16 additions and 2 deletions

View File

@@ -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;
}