forked from qt-creator/qt-creator
CMake: Use FilePath operations to create error flags
Otherwise remote setups generate unrelated errors. Change-Id: I11285048b1ac0424c45bed5b61779af6724a7a0f Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -136,10 +136,10 @@ public:
|
|||||||
|
|
||||||
void updateErrorFlags()
|
void updateErrorFlags()
|
||||||
{
|
{
|
||||||
const QFileInfo fi = CMakeTool::cmakeExecutable(m_executable).toFileInfo();
|
const FilePath filePath = CMakeTool::cmakeExecutable(m_executable);
|
||||||
m_pathExists = fi.exists();
|
m_pathExists = filePath.exists();
|
||||||
m_pathIsFile = fi.isFile();
|
m_pathIsFile = filePath.isFile();
|
||||||
m_pathIsExecutable = fi.isExecutable();
|
m_pathIsExecutable = filePath.isExecutableFile();
|
||||||
|
|
||||||
CMakeTool cmake(m_autodetected ? CMakeTool::AutoDetection
|
CMakeTool cmake(m_autodetected ? CMakeTool::AutoDetection
|
||||||
: CMakeTool::ManualDetection, m_id);
|
: CMakeTool::ManualDetection, m_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user