From 85e2368b38f18429fdb03c288c9d2be90ad5945a Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 31 Mar 2021 18:40:17 +0200 Subject: [PATCH] CMakePM: Reparse CMake project when the file-api json files change CMake will reconfigure itself if you have modified the CMakeLists.txt files. Qt Creator needs to reparse the file-api json structure even if the "Auto-run CMake" is being disabled. "Auto-run CMake" will run CMake when the project files themselves have been changed e.g. modify and then save. CMake will use ninja / make to reconfigure itself, generate the file-api structure and Qt Creator needs to keep up. Change-Id: I12d8683b86f35bd6e0ebccec5300cd7ae8dce0b2 Reviewed-by: Eike Ziller --- src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index a94bd9cc1ba..b558cc0d9db 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -915,10 +915,6 @@ void CMakeBuildSystem::becameDirty() if (isParsing()) return; - const CMakeTool *tool = m_parameters.cmakeTool(); - if (!tool->isAutoRun()) - return; - setParametersAndRequestParse(BuildDirParameters(cmakeBuildConfiguration()), REPARSE_SCAN); }