diff options
author | Eike Ziller <eike.ziller@qt.io> | 2023-02-06 09:33:08 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2023-02-07 08:01:33 +0000 |
commit | 3358f94cb76a0a566a79085927dfc121eb42f233 (patch) | |
tree | b14369036482c16ef3994ff6a2298994042438a1 | |
parent | c1656c2f3c2193a902d31048c3a115254bb99528 (diff) | |
download | qt-creator-3358f94cb76a0a566a79085927dfc121eb42f233.tar.gz |
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>
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmaketoolsettingsaccessor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmaketoolsettingsaccessor.cpp b/src/plugins/cmakeprojectmanager/cmaketoolsettingsaccessor.cpp index 362c62c7b1..045218ce3c 100644 --- a/src/plugins/cmakeprojectmanager/cmaketoolsettingsaccessor.cpp +++ b/src/plugins/cmakeprojectmanager/cmaketoolsettingsaccessor.cpp @@ -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")); |