[gdal-dev] iOS patch for GDAL 3.5 requires modification for Mac Catalyst

Robert Coup robert.coup at koordinates.com
Wed Aug 31 13:57:25 PDT 2022


Hi,

The patch at the end of my reply builds & tests ok on my environment (macOS
12.5.1 + arm64).

Are you using https://github.com/leetal/ios-cmake or do newer versions of
CMake now have support for Catalyst? (from
https://gitlab.kitware.com/cmake/cmake/-/issues/20132 it seems not)

How do the varios combinations of CMAKE_SYSTEM_NAME=Darwin|iOS, APPLE,
UNIX, etc work under Catalyst?

Rob :)

diff --git a/cmake/helpers/configure.cmake b/cmake/helpers/configure.cmake
index 277f1ab2a9..a91f72aa04 100644
--- a/cmake/helpers/configure.cmake
+++ b/cmake/helpers/configure.cmake
@@ -247,7 +247,7 @@ else ()

   # For some reason, above tests detect xxxx64 symbols for iOS, which are
not
   # available at build time.
-  if (${CMAKE_SYSTEM_NAME} MATCHES "iOS")
+  if (${CMAKE_SYSTEM_NAME} MATCHES “iOS” OR ${CMAKE_SYSTEM_NAME} MATCHES
“Darwin”)
     set(VSI_FOPEN64 "fopen")
     set(VSI_FTRUNCATE64 "ftruncate")
     set(VSI_FTELL64 "ftell")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220831/c9bc5a4e/attachment.htm>


More information about the gdal-dev mailing list