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: I7cef1e48e94b80e7fbf10e1ca9bf674343ac6722
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
commitbbfb9657fb736e181092c730db373264de823fd3
parentb711adc8460adae4d8b7142f277233772c5c69b4
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeFri, 6 Sep 2024 12:40:16 +0200