diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-03-30 13:58:51 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-03-30 13:05:11 +0000 |
commit | 8799188be578ce640973a4134c77dbb5e752860e (patch) | |
tree | 7284e4feedccad57bc59dad3e95d2b1e706959ec /src/plugins/cmakeprojectmanager | |
parent | 82b9e9ed37fe15619c80d1a9f656bfe2ea6e1f94 (diff) | |
download | qt-creator-8799188be578ce640973a4134c77dbb5e752860e.tar.gz |
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>
Diffstat (limited to 'src/plugins/cmakeprojectmanager')
-rw-r--r-- | src/plugins/cmakeprojectmanager/builddirmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/builddirmanager.cpp b/src/plugins/cmakeprojectmanager/builddirmanager.cpp index df106d5d22..37a0b4c921 100644 --- a/src/plugins/cmakeprojectmanager/builddirmanager.cpp +++ b/src/plugins/cmakeprojectmanager/builddirmanager.cpp @@ -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(); |