CMake: Request filesystem scan when cmake files change

The typical use case is to add header/source file and then update
the CMakeLists.txt file to add the source.

Request a filesystem scan when a cmakefile changes to pick up the
header file when the source file is added.

Task-number: QTCREATORBUG-22674
Change-Id: Ifbb1ba37dd46967215f51db2c6ad92af669df585
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2019-07-30 11:48:57 +02:00
parent 16fe5fe109
commit f9c246b26e

View File

@@ -243,7 +243,7 @@ void BuildDirManager::becameDirty()
if (!tool->isAutoRun()) if (!tool->isAutoRun())
return; return;
emit requestReparse(REPARSE_CHECK_CONFIGURATION); emit requestReparse(REPARSE_CHECK_CONFIGURATION | REPARSE_SCAN);
} }
void BuildDirManager::resetData() void BuildDirManager::resetData()