--- ./storage/innobase/unittest/CMakeLists.txt.orig	2024-02-12 07:24:17.493877725 +0000
+++ ./storage/innobase/unittest/CMakeLists.txt	2024-02-12 07:24:35.650043767 +0000
@@ -22,7 +22,7 @@
 ADD_DEPENDENCIES(innodb_fts-t GenError)
 MY_ADD_TEST(innodb_fts)
 # See explanation in innobase/CmakeLists.txt
-IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64|s390x")
+IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64|s390x" OR CMAKE_SYSTEM_NAME MATCHES "AIX")
   ADD_COMPILE_FLAGS(
       ../sync/srw_lock.cc
       COMPILE_FLAGS "-mhtm"
