aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/fileapireader.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-06-18 11:31:46 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-06-20 13:42:02 +0000
commitc61c499970a25b2fc5d6e0fb7109afe9597b372b (patch)
tree72991cbce170a640c457d87e4bf58378cafa5176 /src/plugins/cmakeprojectmanager/fileapireader.cpp
parenta95eb53d3ba880efd880616a2725ac7657dffea2 (diff)
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>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/fileapireader.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/fileapireader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/fileapireader.cpp b/src/plugins/cmakeprojectmanager/fileapireader.cpp
index 957ebaaea0..e98f2c9c11 100644
--- a/src/plugins/cmakeprojectmanager/fileapireader.cpp
+++ b/src/plugins/cmakeprojectmanager/fileapireader.cpp
@@ -107,7 +107,7 @@ void FileApiReader::setParameters(const BuildDirParameters &p)
bool FileApiReader::isCompatible(const BuildDirParameters &p)
{
const CMakeTool *cmakeTool = p.cmakeTool();
- return cmakeTool && cmakeTool->hasFileApi();
+ return cmakeTool && cmakeTool->readerType() == CMakeTool::FileApi;
}
void FileApiReader::resetData()