Commit fe944e47 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

CMake: Simplify code a little

Change-Id: Ifdfac9bb844c9ab201378a6047714ab64ccebd66
Reviewed-by: default avatarNiels Weber <>
parent 5498dfbc
......@@ -240,10 +240,7 @@ QStringList CMakeProject::getCXXFlagsFor(const CMakeBuildTarget &buildTarget, QB
bool CMakeProject::parseCMakeLists()
if (!activeTarget() ||
!activeTarget()->activeBuildConfiguration()) {
return false;
QTC_ASSERT(activeTarget() && activeTarget()->activeBuildConfiguration(), return false);
CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
foreach (Core::IDocument *document, Core::DocumentModel::openedDocuments())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment