CMakePM: Do not register qch files from device

Change-Id: Ie6f8ce74d500d18b69fd5017ddd820356515c21a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Christian Stenger
2021-10-07 12:03:56 +02:00
parent 8f974cd1c5
commit 4bea534c62

View File

@@ -360,7 +360,7 @@ Utils::optional<CMakeTool::ReaderType> CMakeTool::readerType() const
FilePath CMakeTool::searchQchFile(const FilePath &executable) FilePath CMakeTool::searchQchFile(const FilePath &executable)
{ {
if (executable.isEmpty()) if (executable.isEmpty() || executable.needsDevice()) // do not register docs from devices
return {}; return {};
FilePath prefixDir = executable.parentDir().parentDir(); FilePath prefixDir = executable.parentDir().parentDir();