Detect 32bit environment on 64bit ARM hardware
for using same approach as
@@ -49,7 +49,11 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*|amd64.*|AMD64.*")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)")
set(ARM 1)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)")
+ if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
set(ARM64 1)
+ else()
+ set(ARM 1)
+ endif()
endif()
if (X86_64)
