CMake: Detect cmake from ARM homebrew on macOS

Change-Id: I67c539c9e9a42de086df9e0c12fa4e661494e121
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Eike Ziller
2023-02-06 09:33:08 +01:00
parent c1656c2f3c
commit 3358f94cb7

View File

@@ -61,8 +61,9 @@ static std::vector<std::unique_ptr<CMakeTool>> autoDetectCMakeTools()
if (HostOsInfo::isMacHost()) {
path.append("/Applications/CMake.app/Contents/bin");
path.append("/usr/local/bin");
path.append("/opt/local/bin");
path.append("/usr/local/bin"); // homebrew intel
path.append("/opt/homebrew/bin"); // homebrew arm
path.append("/opt/local/bin"); // macports
}
const QStringList execs = env.appendExeExtensions(QLatin1String("cmake"));