forked from qt-creator/qt-creator
CMakePM: Make "Autorun CMake" a global setting
The "Autorun CMake" is only visible in the Tools settings page when the user clicks on CMake tool. This is not very visible and it doesn't have to be per CMake version. Change-Id: I57ded0b2e6a3ecb731bb8bc1495b6b61bc04c8b6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#include "cmakeprocess.h"
|
||||
#include "cmakeprojectmanagertr.h"
|
||||
#include "cmakeprojectplugin.h"
|
||||
#include "cmakespecificsettings.h"
|
||||
#include "fileapidataextractor.h"
|
||||
#include "fileapiparser.h"
|
||||
|
||||
@@ -106,7 +108,8 @@ void FileApiReader::parse(bool forceCMakeRun,
|
||||
// * A query file is newer than the reply file
|
||||
const bool hasArguments = !args.isEmpty();
|
||||
const bool replyFileMissing = !replyFile.exists();
|
||||
const bool cmakeFilesChanged = m_parameters.cmakeTool() && m_parameters.cmakeTool()->isAutoRun()
|
||||
const auto settings = CMakeProjectPlugin::projectTypeSpecificSettings();
|
||||
const bool cmakeFilesChanged = m_parameters.cmakeTool() && settings->autorunCMake.value()
|
||||
&& anyOf(m_cmakeFiles, [&replyFile](const CMakeFileInfo &info) {
|
||||
return !info.isGenerated
|
||||
&& info.path.lastModified() > replyFile.lastModified();
|
||||
|
||||
Reference in New Issue
Block a user