--- CMakeLists.txt.orig	2022-12-10 06:30:47.000000000 +0800
+++ CMakeLists.txt	2023-04-01 23:55:44.000000000 +0800
@@ -310,9 +310,13 @@
     check_both_flags_add(TYPE DEBUG /Od)
 else()
     check_both_flags_add(PREPEND -Wall)
-    option(NATIVE "Build for native performance (march=native)" OFF)
+    option(NATIVE "Build for native performance (march=native or mcpu=native)" OFF)
     if(NATIVE)
+      if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc|ppc64|powerpc|powerpc64|power" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc|ppc64")
+        check_both_flags_add(-mtune=native)
+      else()
         check_both_flags_add(-march=native)
+      endif()
     endif()
     if(MINGW)
         check_both_flags_add(-mxsave -fno-asynchronous-unwind-tables)
