From 1fb8e24afd7849ac7e5c4644ecc72a5be86504d4 Mon Sep 17 00:00:00 2001
From: maqi <maqi@uniontech.com>
Date: Fri, 28 Feb 2025 09:50:49 +0800
Subject: [PATCH] add sw64 to lib64 matches

---
 cmake/install.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/install.cmake b/cmake/install.cmake
index 264e2ac..f6d2a7e 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -76,7 +76,7 @@ SET(LIBMARIADB_STATIC_DEFAULT "mariadbclient")
 # RPM layout
 #
 SET(INSTALL_BINDIR_RPM "bin")
-IF((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le" OR CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "s390x" OR CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64") AND CMAKE_SIZEOF_VOID_P EQUAL 8)
+IF((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le" OR CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "s390x" OR CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "sw_64") AND CMAKE_SIZEOF_VOID_P EQUAL 8)
   SET(INSTALL_LIBDIR_RPM "lib64/mariadb")
   SET(INSTALL_PCDIR_RPM "lib64/pkgconfig")
   SET(INSTALL_PLUGINDIR_RPM "lib64/mariadb/plugin")
-- 
2.39.3

