forked from qt-creator/qt-creator
CMake: Make fileapi not race against its own reply file detection
Fix broken logic to prevent CMake fileapi from detecting the change its own cmake run triggered via file watching. Remember the last file that was parsed and do not attempt to parse this again. Remember the file on a per-project basis, too:-) Change-Id: Ia6e155b65d77994f6e3d2a3677f770a4ba53539d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
committed by
Alexandru Croitor
parent
ec92784778
commit
eab0df22f9
@@ -231,6 +231,8 @@ void FileApiReader::endState(const QFileInfo &replyFi)
|
||||
const FilePath sourceDirectory = m_parameters.sourceDirectory;
|
||||
const FilePath buildDirectory = m_parameters.workDirectory;
|
||||
|
||||
m_fileApi->setParsedReplyFilePath(replyFi.filePath());
|
||||
|
||||
m_future = runAsync(ProjectExplorerPlugin::sharedThreadPool(),
|
||||
[replyFi, sourceDirectory, buildDirectory]() {
|
||||
auto result = std::make_unique<FileApiQtcData>();
|
||||
|
||||
Reference in New Issue
Block a user