|
|
@@ -574,8 +574,12 @@ elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(x86_64|i686|AMD64)$" OR "${CMAKE_GE
|
|
|
endif()
|
|
|
elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64")
|
|
|
message(STATUS "PowerPC detected")
|
|
|
- add_compile_options(-mcpu=native -mtune=native)
|
|
|
- #TODO: Add targets for Power8/Power9 (Altivec/VSX) and Power10(MMA) and query for big endian systems (ppc64/le/be)
|
|
|
+ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
|
|
|
+ add_compile_options(-mcpu=powerpc64le)
|
|
|
+ else()
|
|
|
+ add_compile_options(-mcpu=native -mtune=native)
|
|
|
+ #TODO: Add targets for Power8/Power9 (Altivec/VSX) and Power10(MMA) and query for big endian systems (ppc64/le/be)
|
|
|
+ endif()
|
|
|
else()
|
|
|
message(STATUS "Unknown architecture")
|
|
|
endif()
|