Skip to content

Commit a665cfd

Browse files
committed
2 parents 00bb653 + 539d27e commit a665cfd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ else()
6060
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
6161
set(ARCH x86)
6262
endif()
63+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
64+
# AIX will report the processor as 'powerpc' even if building in 64-bit mode
65+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
66+
set(ARCH ppc64)
67+
else()
68+
set(ARCH ppc32)
69+
endif()
6370
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES
6471
"^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)")
6572
set(ARCH arm64)

0 commit comments

Comments
 (0)