CMake: Fix build with CMake 3.16 on Windows


We cannot link Qt::Core against interface libraries with CMake < 3.18.
See the linked task for details.

This link dependency is not necessary. Remove it.

Pick-to: 6.5 6.7 6.8
Task-number: QTBUG-111760
Change-Id: Ib72cb24ae3cc3f57659d40cc07e862802d0b2c59
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
commit58e615e00e49d0849faf2a51318918d0a8e7a950
parente9d60c21c065985739c267d204456cec8d603d73
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeFri, 6 Sep 2024 12:38:55 +0200