Blob Blame History Raw
diff -rupN --no-dereference qt-creator-opensource-src-12.0.1/src/libs/utils/buildablehelperlibrary.cpp qt-creator-opensource-src-12.0.1-new/src/libs/utils/buildablehelperlibrary.cpp
--- qt-creator-opensource-src-12.0.1/src/libs/utils/buildablehelperlibrary.cpp	2023-12-11 02:10:01.000000000 +0100
+++ qt-creator-opensource-src-12.0.1-new/src/libs/utils/buildablehelperlibrary.cpp	2023-12-13 07:49:42.493565440 +0100
@@ -155,7 +155,12 @@ QStringList BuildableHelperLibrary::poss
     // On Unix some distributions renamed qmake with a postfix to avoid clashes
     // On OS X, Qt 4 binary packages also has renamed qmake. There are also symbolic links that are
     // named "qmake", but the file dialog always checks against resolved links (native Cocoa issue)
-    QStringList commands(HostOsInfo::withExecutableSuffix("qmake*"));
+    QStringList commands = QStringList()
+        << HostOsInfo::withExecutableSuffix("qmake-qt6")
+        << HostOsInfo::withExecutableSuffix("qmake-qt5")
+        << HostOsInfo::withExecutableSuffix("qmake-qt4")
+        << HostOsInfo::withExecutableSuffix("qmake-qt3")
+        << HostOsInfo::withExecutableSuffix("qmake");
 
     // Qt 6 CMake built targets, such as Android, are dependent on the host installation
     // and use a script wrapper around the host qmake executable