diff --git a/src/plugins/cmakeprojectmanager/cmaketool.cpp b/src/plugins/cmakeprojectmanager/cmaketool.cpp index 5f140ac84f7..2ad78abed7b 100644 --- a/src/plugins/cmakeprojectmanager/cmaketool.cpp +++ b/src/plugins/cmakeprojectmanager/cmaketool.cpp @@ -139,6 +139,12 @@ QVariantMap CMakeTool::toMap() const Utils::FileName CMakeTool::cmakeExecutable() const { + if (Utils::HostOsInfo::isMacHost() && m_executable.endsWith(".app")) { + Utils::FileName toTest = m_executable; + toTest = toTest.appendPath("Contents/bin/cmake"); + if (toTest.exists()) + return toTest; + } return m_executable; }