Re: SIZEOF_LONG undefined when cross-compiling for iOS

2019-05-22 Thread Jonas Vautherin via curl-library
Wait, that's actually exactly what ${SIZEOF_LONG_CODE} does! So instead of using #cmakedefine, I think we could just switch everything to ${VARIABLE_CODE} and that would simply support that! I'm gonna give it a shot! On Wed, May 22, 2019 at 12:17 PM Jonas Vautherin wrote: > Thanks a lot for the

Re: SIZEOF_LONG undefined when cross-compiling for iOS

2019-05-22 Thread Jonas Vautherin via curl-library
Thanks a lot for the answer, that was helpful! It turns out that the toolchain is actually setting multiple OSX architectures, and CMake is behaving as per the doc [1], i.e.: > The variable “${VARIABLE}” may be “0” when CMAKE_OSX_ARCHITECTURES has multiple architectures for building OS X universa

Re: SIZEOF_LONG undefined when cross-compiling for iOS

2019-05-17 Thread Daniel Stenberg via curl-library
On Fri, 17 May 2019, Jonas Vautherin via curl-library wrote: I have been trying to cross-compile curl for iOS, using leetal's toolchain [1] (and another, similar one that has the same issue). When building for the "Xcode" cmake generator (cmake -G Xcode <...>), curl build successfully. But wh