<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>The patch at the end of my reply builds & tests ok on my environment (macOS 12.5.1 + arm64).</div><div><br></div><div>Are you using <a href="https://github.com/leetal/ios-cmake">https://github.com/leetal/ios-cmake</a> or do newer versions of CMake now have support for Catalyst? (from <a href="https://gitlab.kitware.com/cmake/cmake/-/issues/20132">https://gitlab.kitware.com/cmake/cmake/-/issues/20132</a> it seems not)<br></div><div><br></div><div>How do the varios combinations of CMAKE_SYSTEM_NAME=Darwin|iOS, APPLE, UNIX, etc work under Catalyst?</div><div><br></div><div>Rob :)</div><div><br></div><div><div>diff --git a/cmake/helpers/configure.cmake b/cmake/helpers/configure.cmake<br>index 277f1ab2a9..a91f72aa04 100644<br>--- a/cmake/helpers/configure.cmake<br>+++ b/cmake/helpers/configure.cmake<br>@@ -247,7 +247,7 @@ else ()<br><br>   # For some reason, above tests detect xxxx64 symbols for iOS, which are not<br>   # available at build time.<br>-  if (${CMAKE_SYSTEM_NAME} MATCHES "iOS")<br>+  if (${CMAKE_SYSTEM_NAME} MATCHES “iOS” OR ${CMAKE_SYSTEM_NAME} MATCHES “Darwin”)<br>     set(VSI_FOPEN64 "fopen")<br>     set(VSI_FTRUNCATE64 "ftruncate")<br>     set(VSI_FTELL64 "ftell")</div></div><div><br></div></div></div>