CMake: Fix inverted logic bug

This was introduced by d5383c92a8

Change-Id: I88736c14d4dc811b2b375ee2a9b97d3114524d01
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Tobias Hunger
2019-06-21 11:42:49 +02:00
parent 4ce34fd90f
commit 700c88418c

View File

@@ -291,7 +291,7 @@ void BuildDirManager::parse(int reparseParameters)
TaskHub::clearTasks(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM); TaskHub::clearTasks(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
if (m_parameters.workDirectory.toFileInfo().exists("CMakeCache.txt")) { if (!m_parameters.workDirectory.toFileInfo().exists("CMakeCache.txt")) {
reparseParameters |= REPARSE_FORCE_CONFIGURATION | REPARSE_FORCE_CMAKE_RUN; reparseParameters |= REPARSE_FORCE_CONFIGURATION | REPARSE_FORCE_CMAKE_RUN;
} else if (reparseParameters & REPARSE_CHECK_CONFIGURATION) { } else if (reparseParameters & REPARSE_CHECK_CONFIGURATION) {
if (checkConfiguration()) if (checkConfiguration())