Fix install .so plugins

Remove the period from the file extension .so because the completeSuffix function of the FilePath class does not return the first period of the extension.

Change-Id: Ifd850e54337c399d6440b6ad765c3b23df9ed330
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Ludovic Le Brun
2023-10-18 19:02:58 +02:00
committed by Ludovic Le Brun
parent fb788dec30
commit 26b2a755a8

View File

@@ -58,7 +58,7 @@ static QStringList libraryNameFilter()
static bool hasLibSuffix(const FilePath &path)
{
return (HostOsInfo::isWindowsHost() && path.endsWith(".dll"))
|| (HostOsInfo::isLinuxHost() && path.completeSuffix().startsWith(".so"))
|| (HostOsInfo::isLinuxHost() && path.completeSuffix().startsWith("so"))
|| (HostOsInfo::isMacHost() && path.endsWith(".dylib"));
}