forked from qt-creator/qt-creator
CMake: Make sure to run cmake when that is requested
Pass on the request to run cmake on to the builddirreaders. Task-number: QTCREATORBUG-19704 Change-Id: Iafeba61f46d6bb6783fc62d0504bb07dde2c4612 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -170,7 +170,7 @@ static QString findCbpFile(const QDir &directory)
|
||||
return file;
|
||||
}
|
||||
|
||||
void TeaLeafReader::parse(bool forceConfiguration)
|
||||
void TeaLeafReader::parse(bool forceCMakeRun, bool forceConfiguration)
|
||||
{
|
||||
emit configurationStarted();
|
||||
|
||||
@@ -182,7 +182,7 @@ void TeaLeafReader::parse(bool forceConfiguration)
|
||||
return;
|
||||
}
|
||||
|
||||
const bool mustUpdate = m_cmakeFiles.isEmpty()
|
||||
const bool mustUpdate = forceCMakeRun || m_cmakeFiles.isEmpty()
|
||||
|| anyOf(m_cmakeFiles, [&cbpFileFi](const FilePath &f) {
|
||||
return f.toFileInfo().lastModified() > cbpFileFi.lastModified();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user