CMake: Add an option to override cmake reader type

Add an option to override the cmake reader type that is going to
be used.

By default the reader type is "auto" for autodetection, but that can
get changed in the cmaketools.xml settings file. Other supported options
are "tealeaf", "servermode" or "fileapi" and that will force that reader.

You can also set QTC_CMAKE_IGNORE_FILEAPI=1 in your environment to force
creator to ignore the existence of fileapi support in all cmake tools.

Change-Id: I2006616312090ce2909154dc1966f7a8eaa2949a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2019-06-18 11:31:46 +02:00
parent a95eb53d3b
commit c61c499970
6 changed files with 83 additions and 18 deletions

View File

@@ -135,9 +135,7 @@ void TeaLeafReader::setParameters(const BuildDirParameters &p)
bool TeaLeafReader::isCompatible(const BuildDirParameters &p)
{
if (!p.cmakeTool())
return false;
return !p.cmakeTool()->hasServerMode();
return p.cmakeTool() && p.cmakeTool()->readerType() == CMakeTool::TeaLeaf;
}
void TeaLeafReader::resetData()