forked from qt-creator/qt-creator
CMake: Run CMake less often
Run CMake less often to extract information on the CMake tool. Change-Id: I959df99fee16e6196db61c84aee7908d66af222d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -378,19 +378,17 @@ CMakeTool::ReaderType CMakeTool::readerType() const
|
||||
|
||||
void CMakeTool::readInformation(CMakeTool::QueryType type) const
|
||||
{
|
||||
if ((type == QueryType::GENERATORS && !m_introspection->m_generators.isEmpty())
|
||||
|| (type == QueryType::SERVER_MODE && m_introspection->m_queriedServerMode)
|
||||
|| (type == QueryType::VERSION && !m_introspection->m_version.fullVersion.isEmpty()))
|
||||
return;
|
||||
|
||||
if (!m_introspection->m_triedCapabilities) {
|
||||
fetchFromCapabilities();
|
||||
m_introspection->m_triedCapabilities = true;
|
||||
m_introspection->m_queriedServerMode = true; // Got added after "-E capabilities" support!
|
||||
if (type == QueryType::GENERATORS && !m_introspection->m_generators.isEmpty())
|
||||
return;
|
||||
}
|
||||
|
||||
if ((type == QueryType::GENERATORS && !m_introspection->m_generators.isEmpty())
|
||||
|| (type == QueryType::SERVER_MODE && m_introspection->m_queriedServerMode)
|
||||
|| (type == QueryType::VERSION && !m_introspection->m_version.fullVersion.isEmpty()))
|
||||
return;
|
||||
|
||||
if (type == QueryType::GENERATORS) {
|
||||
fetchGeneratorsFromHelp();
|
||||
} else if (type == QueryType::SERVER_MODE) {
|
||||
|
||||
Reference in New Issue
Block a user