forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/7.0'
Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri Change-Id: Ic02df53b880d0861d9d9ea0df3e0d381ae99f350
This commit is contained in:
@@ -234,7 +234,7 @@ FilePath CMakeTool::qchFilePath() const
|
||||
|
||||
FilePath CMakeTool::cmakeExecutable(const FilePath &path)
|
||||
{
|
||||
if (HostOsInfo::isMacHost()) {
|
||||
if (path.osType() == OsTypeMac) {
|
||||
const QString executableString = path.toString();
|
||||
const int appIndex = executableString.lastIndexOf(".app");
|
||||
const int appCutIndex = appIndex + 4;
|
||||
@@ -251,7 +251,7 @@ FilePath CMakeTool::cmakeExecutable(const FilePath &path)
|
||||
|
||||
const FilePath resolvedPath = path.canonicalPath();
|
||||
// Evil hack to make snap-packages of CMake work. See QTCREATORBUG-23376
|
||||
if (HostOsInfo::isLinuxHost() && resolvedPath.fileName() == "snap")
|
||||
if (path.osType() == OsTypeLinux && resolvedPath.fileName() == "snap")
|
||||
return path;
|
||||
|
||||
return resolvedPath;
|
||||
|
||||
Reference in New Issue
Block a user