CMake: Use -framework Foo style arguments when building for iOS


It avoids absolute paths to a specific Apple sysroot when building
multi-arch iOS, and thus avoids any potential trouble with picking up
a header from an incorrect sysroot.

Pick-to: 6.2 6.5 6.6
Task-number: QTBUG-118138
Change-Id: I98af023f1f34e9b7d2d04ad436327c3f10b827cc
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit3d9aa3a531f8632d1b0ec19f1515be739a62ee3c
parent9ca76a00dc1504ce76cea43e5db68ae62f9bb34e
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 2 Nov 2023 15:51:31 +0100