diff --git a/src/plugins/cmakeprojectmanager/cmaketool.cpp b/src/plugins/cmakeprojectmanager/cmaketool.cpp index 0ed1d505133..361e0acd889 100644 --- a/src/plugins/cmakeprojectmanager/cmaketool.cpp +++ b/src/plugins/cmakeprojectmanager/cmaketool.cpp @@ -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(); m_executable = executable; CMakeToolManager::notifyAboutUpdate(this);