diff --git a/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake b/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake index a5c9f0fe3e..aa3a67cdbd 100644 --- a/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake +++ b/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake @@ -11,6 +11,13 @@ include (CMakeForceCompiler) CMAKE_FORCE_C_COMPILER (gcc gcc) CMAKE_FORCE_CXX_COMPILER (g++ g++) +set (CMAKE_C_SIZEOF_DATA_PTR 4) +set (CMAKE_C_HAS_ISYSROOT 1) +set (CMAKE_C_COMPILER_ABI ELF) +set (CMAKE_CXX_SIZEOF_DATA_PTR 4) +set (CMAKE_CXX_HAS_ISYSROOT 1) +set (CMAKE_CXX_COMPILER_ABI ELF) + # Skip the platform compiler checks for cross compiling set (CMAKE_CXX_COMPILER_WORKS TRUE) set (CMAKE_C_COMPILER_WORKS TRUE) diff --git a/ios/cmake/Toolchains/Toolchain-iPhoneSimulator_Xcode.cmake b/ios/cmake/Toolchains/Toolchain-iPhoneSimulator_Xcode.cmake index 85bb17bdc5..78d45bca18 100644 --- a/ios/cmake/Toolchains/Toolchain-iPhoneSimulator_Xcode.cmake +++ b/ios/cmake/Toolchains/Toolchain-iPhoneSimulator_Xcode.cmake @@ -11,6 +11,13 @@ include (CMakeForceCompiler) CMAKE_FORCE_C_COMPILER (gcc gcc) CMAKE_FORCE_CXX_COMPILER (g++ g++) +set (CMAKE_C_SIZEOF_DATA_PTR 4) +set (CMAKE_C_HAS_ISYSROOT 1) +set (CMAKE_C_COMPILER_ABI ELF) +set (CMAKE_CXX_SIZEOF_DATA_PTR 4) +set (CMAKE_CXX_HAS_ISYSROOT 1) +set (CMAKE_CXX_COMPILER_ABI ELF) + # Skip the platform compiler checks for cross compiling set (CMAKE_CXX_COMPILER_WORKS TRUE) set (CMAKE_C_COMPILER_WORKS TRUE)