forked from qt-creator/qt-creator
CMake: Fix crash in makestep if used in the deploystep list
Task-number: QTCREATORBUG-7427 Change-Id: I8cc1e49e87d38c1a789bf3dee25b62668efc433d Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -132,6 +132,8 @@ bool MakeStep::fromMap(const QVariantMap &map)
|
||||
bool MakeStep::init()
|
||||
{
|
||||
CMakeBuildConfiguration *bc = cmakeBuildConfiguration();
|
||||
if (!bc)
|
||||
bc = static_cast<CMakeBuildConfiguration *>(target()->activeBuildConfiguration());
|
||||
|
||||
QString arguments = Utils::QtcProcess::joinArgs(m_buildTargets);
|
||||
Utils::QtcProcess::addArgs(&arguments, additionalArguments());
|
||||
|
||||
Reference in New Issue
Block a user