The arch detection code used by cmake build exports ppc arch names in an
abbreviated way, e.g. ppc64le instead of powerpc64le. Some parts of
CMakeLists.txt are using the longer form instead, which will not
properly match the desired subarch as expected. Switch to using the
longer form everywhere for consistency with 'configure' script and with
arch names obtained when running under QEMU.
#elif defined(__powerpc__) || defined(_ppc__) || defined(__PPC__)
#if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__)
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- #error archfound ppc64le
+ #error archfound powerpc64le
#else
- #error archfound ppc64
+ #error archfound powerpc64
#endif
#else
- #error archfound ppc
+ #error archfound powerpc
#endif
// --------------- Less common architectures alphabetically below ---------------