From 82859399e6059556caed381dac0f7d169f1e2792 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 21 Oct 2019 22:56:09 +0300 Subject: [PATCH] QtSupport: Simplify detection of qmake executable in PATH on Windows Instead of enumerating the directory, search directly for the executable first, like it is done on UNIX. Change-Id: I6465d85efa20d97622afc227eaadcbc14b3e22f5 Reviewed-by: Christian Kandeler --- src/libs/utils/buildablehelperlibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/buildablehelperlibrary.cpp b/src/libs/utils/buildablehelperlibrary.cpp index 80ddeafa1a5..0e19dba5e95 100644 --- a/src/libs/utils/buildablehelperlibrary.cpp +++ b/src/libs/utils/buildablehelperlibrary.cpp @@ -78,7 +78,7 @@ static FilePath findQmakeInDir(const FilePath &path) if (path.isEmpty()) return FilePath(); - const QString qmake = "qmake"; + const QString qmake = HostOsInfo::withExecutableSuffix("qmake"); QDir dir(path.toString()); if (dir.exists(qmake)) { const QString qmakePath = dir.absoluteFilePath(qmake);