forked from qt-creator/qt-creator
CMake: Force reparsing of cmake projects
Change-Id: I2f309e38e99a7b5836c623995e71470e7161ee98 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -231,6 +231,7 @@ void BuildDirManager::forceReparse()
|
|||||||
CMakeTool *tool = CMakeKitInformation::cmakeTool(m_buildConfiguration->target()->kit());
|
CMakeTool *tool = CMakeKitInformation::cmakeTool(m_buildConfiguration->target()->kit());
|
||||||
QTC_ASSERT(tool, return);
|
QTC_ASSERT(tool, return);
|
||||||
|
|
||||||
|
m_reader.reset(); // Force reparse by forcing in a new reader
|
||||||
updateReaderType([this]() { parseOnceReaderReady(true); });
|
updateReaderType([this]() { parseOnceReaderReady(true); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user