Skip to content
Snippets Groups Projects
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 <niels.weber@theqtcompany.com>
parent 5498dfbc
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment