cmake use toolchain file to cross compile Edit Delete build cmake compile compiler cross file toolchain cmake srcdir/ -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain.cmake