forked from qt-creator/qt-creator
CMake: Force a cmake run if no data is available yet
It makes no sense to not parse if we never parsed before. This got broken when I tried to reduce the number of cmake runs. Change-Id: Id70a6550faf248cc983b61f6d2456a93d8454a50 Task-number: QTCREATORBUG-15927 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -607,8 +607,10 @@ void BuildDirManager::maybeForceReparse()
|
||||
const QByteArray EXTRA_GENERATOR_KEY = "CMAKE_EXTRA_GENERATOR";
|
||||
const QByteArray CMAKE_COMMAND_KEY = "CMAKE_COMMAND";
|
||||
|
||||
if (!m_hasData)
|
||||
if (!m_hasData) {
|
||||
forceReparse();
|
||||
return;
|
||||
}
|
||||
|
||||
const CMakeConfig currentConfig = parsedConfiguration();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user