Fails to crosscompile
When trying to cross-compile the following error occurs:
[ 12%] Built target camel-gpg-photo-saver
[ 12%] Generating camel-mime-tables.c
/bin/sh: ./camel-gen-tables: cannot execute binary file: Exec format error
make[2]: *** [src/camel/CMakeFiles/camel.dir/build.make:66: src/camel/camel-mime-tables.c] Error 126
make[2]: *** Deleting file 'src/camel/camel-mime-tables.c'
make[1]: *** [CMakeFiles/Makefile2:3148: src/camel/CMakeFiles/camel.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Built target data-files
[ 14%] Built target edbus-private
make: *** [Makefile:141: all] Error 2
built with the following toolchain file:
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER gcc)
SET(CMAKE_CXX_COMPILER g++)
SET(CMAKE_CROSSCOMPILING TRUE)
SET(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)