CMake: Do not use PUBLIC_LIBRARIES in plugins
Fixes configure time warnings like
CMake Warning (dev) at qtbase/cmake/QtPluginHelpers.cmake:57 (message):
Plugins are not intended to be linked to. They should not have any public
properties, but SystecCanBusPlugin sets PUBLIC_LIBRARIES to the following
value:
Qt::Core;Qt::Network;Qt::SerialBus
Update your project to use LIBRARIES instead.
Call Stack (most recent call first):
qtserialbus/src/plugins/canbus/systeccan/CMakeLists.txt:5 (qt_internal_add_plugin)
This warning is for project developers. Use -Wno-dev to suppress it.
Pick-to: 6.2
Change-Id: Id287feb59e4a13d64868c4df6c1f77e10d90d2ca
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>