]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
cmake: Use consistent arch names for POWER targets
authorMatheus Castanho <msc@linux.ibm.com>
Tue, 9 Jun 2020 18:25:16 +0000 (15:25 -0300)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 27 Jun 2020 15:42:55 +0000 (17:42 +0200)
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.

cmake/detect-arch.c

index d7017d8b1f556ee44f1b3bf95fcf79c7816ba774..571553582affc7acbcf04116d024ba42fca528bd 100644 (file)
 #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 ---------------