From b243a794aadd02f2187608f5a3b63656be9eb1e0 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 25 Nov 2020 14:21:02 +0100 Subject: [PATCH] CMake: Fix missing run of CMake after saving sub-CMakeLists.txt If you have a project with subdirs, changing and saving on of the subdirs CMakeLists.txt would just "reparse" the existing project data again. Instead run CMake first, so the change actually takes effect. Change-Id: Ia2b0f8b5681f10d426229470fdc420b3234eccec Reviewed-by: Cristian Adam --- src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index c77f7855100..c890f3f4227 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -781,7 +781,7 @@ void CMakeBuildSystem::wireUpConnections() if (cmake && cmake->isAutoRun()) { qCDebug(cmakeBuildSystemLog) << "Requesting parse due to dirty project file"; setParametersAndRequestParse(BuildDirParameters(cmakeBuildConfiguration()), - CMakeBuildSystem::REPARSE_DEFAULT); + CMakeBuildSystem::REPARSE_FORCE_CMAKE_RUN); } } });