forked from qt-creator/qt-creator
CMakePM: clang-tidy fix for 'no-automatic-move'
See https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang- tidy/checks/performance/no-automatic-move.html Change-Id: If265c9b0e2aea49e5923f079cd621e10bb958286 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -228,7 +228,7 @@ FilePath CMakeTool::cmakeExecutable(const FilePath &path)
|
||||
}
|
||||
}
|
||||
|
||||
const FilePath resolvedPath = path.canonicalPath();
|
||||
FilePath resolvedPath = path.canonicalPath();
|
||||
// Evil hack to make snap-packages of CMake work. See QTCREATORBUG-23376
|
||||
if (path.osType() == OsTypeLinux && resolvedPath.fileName() == "snap")
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user