libpng icon indicating copy to clipboard operation
libpng copied to clipboard

Fix Arm Neon optimization detection when building for iOS

Open TheMostDiligent opened this issue 2 years ago • 14 comments

When cross-compiling for iOS, CMake does not define the CMAKE_OSX_ARCHITECTURES variable. As a result, this branch of CMake script does not get executed, so PNG_ARM_NEON_OPT is not defined as well as source files for Neon are not added to the project.

The PNG_ARM_NEON_OPT then gets defined here which results in linker errors as source files are not in the project.

TheMostDiligent avatar Dec 02 '22 18:12 TheMostDiligent

Is it possible that you merge this minor change? It fixes link errors in XCode

TheMostDiligent avatar May 04 '24 20:05 TheMostDiligent