diff options
author | Tobias Hunger <[email protected]> | 2019-08-15 12:22:09 +0200 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2019-08-16 12:43:39 +0000 |
commit | b8be7da1584dc00164277deb525971e8b6123d98 (patch) | |
tree | afbb345785a207d2c9da87cb24a818de04fa9e49 /src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | |
parent | c89a8a40845aa4b6106586b849c457107768e6ba (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index ee9edca4484..a0203742965 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -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; |