Save the target architecture as a cmake cache variable, so other
components can adapt their build if they depend on it.
Note this target architecture is not necessarily the host processor
as posix arch based targets can also be crosscompiled.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>