cmCoreTryCompile: Consider app-bundles regardless of build platform
This fixes cmake/cmake#23597 (closed) : Cross-compilation from non-apple to apple-platforms requires handling of .app-bundles.
This fixes cmake/cmake#23597 (closed) : Cross-compilation from non-apple to apple-platforms requires handling of .app-bundles.