forked from qt-creator/qt-creator
Refactoring: Use one common code to find the debugging helper library
Remove duplicated code from cmakeprojectmanager.
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "cmakeprojectconstants.h"
|
||||
|
||||
#include <projectexplorer/environment.h>
|
||||
#include <projectexplorer/qtversionmanager.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <QtGui/QFormLayout>
|
||||
#include <QtGui/QLineEdit>
|
||||
@@ -140,7 +141,9 @@ void CMakeRunConfiguration::setArguments(const QString &newText)
|
||||
|
||||
QString CMakeRunConfiguration::dumperLibrary() const
|
||||
{
|
||||
return CMakeManager::findDumperLibrary(environment());
|
||||
QString qmakePath = ProjectExplorer::QtVersionManager::findSystemQt(environment());
|
||||
QString dhl = ProjectExplorer::QtVersionManager::debuggingHelperLibrary(qmakePath);
|
||||
return dhl;
|
||||
}
|
||||
|
||||
// Factory
|
||||
|
||||
Reference in New Issue
Block a user