Commit 85206e21 authored by Tobias Hunger's avatar Tobias Hunger Committed by David Schulz

QmakeDesktopRunConfiguration: Add correct entry to PATH on windows

When adding Qt to the PATH in the qmake desktop runconfiguration, creator
added the INSTALL_LIBS on windows. This is not correct, use INSTALL_BINS
instead.

Change-Id: Idf3644085657f871870119126d2ab28721ff85d8
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent 034e6725
...@@ -344,8 +344,12 @@ void DesktopQmakeRunConfiguration::addToBaseEnvironment(Environment &env) const ...@@ -344,8 +344,12 @@ void DesktopQmakeRunConfiguration::addToBaseEnvironment(Environment &env) const
} // pro } // pro
QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitInformation::qtVersion(target()->kit()); QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitInformation::qtVersion(target()->kit());
if (qtVersion && m_isUsingLibrarySearchPath) if (qtVersion && m_isUsingLibrarySearchPath) {
env.prependOrSetLibrarySearchPath(qtVersion->qmakeProperty("QT_INSTALL_LIBS")); if (HostOsInfo::isWindowsHost())
env.prependOrSetLibrarySearchPath(qtVersion->qmakeProperty("QT_INSTALL_BINS"));
else
env.prependOrSetLibrarySearchPath(qtVersion->qmakeProperty("QT_INSTALL_LIBS"));
}
} }
QString DesktopQmakeRunConfiguration::buildSystemTarget() const QString DesktopQmakeRunConfiguration::buildSystemTarget() const
......
Markdown is supported
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