forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user