Commit 72d3f438 authored by Alexander Drozdov's avatar Alexander Drozdov Committed by Tobias Hunger

CMake: handle CMake files saving only for active build configuration

...otherwise all previously selected build configurations begins to
process changes in CMakeLists.txt or other cmake-related files after
save it.

Change-Id: I86ff59022c85d88052ff434480e670ebddd90864
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 60ab1234
......@@ -722,7 +722,12 @@ void BuildDirManager::checkConfiguration()
void BuildDirManager::handleDocumentSaves(Core::IDocument *document)
{
if (!m_cmakeFiles.contains(document->filePath()))
Target *t = m_buildConfiguration->target()->project()->activeTarget();
BuildConfiguration *bc = t ? t->activeBuildConfiguration() : nullptr;
if (!m_cmakeFiles.contains(document->filePath()) ||
m_buildConfiguration->target() != t ||
m_buildConfiguration != bc)
return;
m_reparseTimer.start(100);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment