This diff allow cmake to use the ARM optimized assembly (equivalent to autotools --with-asm=arm).
It attempts to guess the build target, and default with an error if assembly is enabled but unsupported by the target (or the target is not known).
This makes the build to succeed by default on x86_64, and on ARM when the toolchain file is used, so no user intervention is needed for the "normal" path.
Depends on D5501.