Fix linking on windows

2 jobs for master in 16 minutes and 31 seconds (queued for 158 minutes and 6 seconds)
Status Job ID Name Coverage
  Build
failed #76421
build_clazy_clang_tidy

00:05:24

passed #76420
linux kf5-qt5 qt5.14

00:11:07

6.0%
 
Name Stage Failure
failed
build_clazy_clang_tidy Build
-- Configuring incomplete, errors occurred!
See also "/builds/pim/korganizer/build/CMakeFiles/CMakeOutput.log".
See also "/builds/pim/korganizer/build/CMakeFiles/CMakeError.log".
Uploading artifacts for failed job
Uploading artifacts...
WARNING: JUnitTestResults.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1