forked from qt-creator/qt-creator
CMake: Simplify based on Project::projectFileIsDirty signal
Delegate all the necessary file watching to Project and connect to the relevant signal. Server-mode insists on watching files itself, so that may not report extra project files. Change-Id: If821c54a7b0f8b72beed53dd1c83f255973faf3e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -310,6 +310,8 @@ void CMakeBuildSystem::updateProjectData(CMakeProject *p, CMakeBuildConfiguratio
|
||||
|
||||
QTC_ASSERT(m_treeScanner.isFinished() && !bc->m_buildDirManager.isParsing(), return );
|
||||
|
||||
project()->setExtraProjectFiles(bc->m_buildDirManager.takeProjectFilesToWatch());
|
||||
|
||||
CMakeConfig patchedConfig = bc->configurationFromCMake();
|
||||
{
|
||||
CMakeConfigItem settingFileItem;
|
||||
|
||||
Reference in New Issue
Block a user