CMake: Properly reset CMakeTool on file path change

Fixes: QTCREATORBUG-18530
Change-Id: I46842aeb4bcfc2ae1267a485fd454b888cd1a885
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Cristian Adam
2019-10-09 16:24:47 +02:00
committed by Tobias Hunger
parent c5fe523774
commit e186df1ba3

View File

@@ -160,8 +160,7 @@ void CMakeTool::setFilePath(const Utils::FilePath &executable)
if (m_executable == executable)
return;
m_introspection->m_didRun = false;
m_introspection->m_didAttemptToRun = false;
m_introspection = std::make_unique<Internal::IntrospectionData>();
m_executable = executable;
CMakeToolManager::notifyAboutUpdate(this);