#include "testcompiler.h"
#include <QObject>
+#include <QStandardPaths>
#include <QDir>
class tst_qmake : public QObject
QString binpath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
QString cmd = QString("%1/qmake").arg(binpath);
#ifdef Q_CC_MSVC
- test_compiler.setBaseCommands( "nmake", cmd );
+ const QString jom = QStandardPaths::findExecutable(QLatin1String("jom.exe"));
+ if (jom.isEmpty()) {
+ test_compiler.setBaseCommands( QLatin1String("nmake"), cmd );
+ } else {
+ test_compiler.setBaseCommands( jom, cmd );
+ }
#elif defined(Q_CC_MINGW)
test_compiler.setBaseCommands( "mingw32-make", cmd );
#elif defined(Q_OS_WIN) && defined(Q_CC_GNU)