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>