CMake: Stabilize fragile Xcode tests


Use the xcode_wrapper also for try_compile calls. Passing the wrapper
with the MAKE_PROGRAM argument insufficient, because the following
happens:

We call ctest with --build-makeprogram xcode_wrapper.sh.
But this won't set CMAKE_MAKE_PROGRAM, because ctest does this
only for Make, Ninja and FASTBuild.

Set CMAKE_MAKE_PROGRAM explicitly now.

Task-number: QTBUG-138855
Change-Id: Ib923830fd74c185bd6a712948b0dbfda0f1c9423
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit2f9de2b3e613fb3f2782f0ae1c6bc61ae14b73d6
parent07a5dde733325da6de9eb8e4475ba322c616afce
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeThu, 19 Mar 2026 15:18:10 +0000