I tried to use CMAKE_SYSTEM_PROCESSOR to detect that the script was being built for AmigaOS 4 on PowerPC. However, on my system it returns "Freescale P5040 (E5500 core)" That is the specific CPU inside my machine, but the information is next to useless for the purpose of detecting the target system's properties.
It would be preferable to return "ppc" or "PowerPC." Uname -m returns "ppc," so setting that variable to "ppc" would be consistent with behaviour on other systems.
I tried to use CMAKE_SYSTEM_PROCESSOR to detect that the script was being built for AmigaOS 4 on PowerPC. However, on my system it returns "Freescale P5040 (E5500 core)" That is the specific CPU inside my machine, but the information is next to useless for the purpose of detecting the target system's properties.
It would be preferable to return "ppc" or "PowerPC." Uname -m returns "ppc," so setting that variable to "ppc" would be consistent with behaviour on other systems.