22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
From e98a72f68cb68f388d3c509b4ced69318194b575 Mon Sep 17 00:00:00 2001
|
|
From: Johan Mabille <johan.mabille@gmail.com>
|
|
Date: Thu, 4 Jul 2019 15:50:03 +0200
|
|
Subject: [PATCH] Fixed flags for ppc architecture
|
|
|
|
---
|
|
test/CMakeLists.txt | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
|
index b14a588..52c5a08 100644
|
|
--- a/test/CMakeLists.txt
|
|
+++ b/test/CMakeLists.txt
|
|
@@ -45,6 +45,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
|
|
include_directories(/usr/${ARM_ARCH_DIRECTORY}/include/c++/${ARM_GCC_VER}/)
|
|
include_directories(/usr/${ARM_ARCH_DIRECTORY}/include/)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${TARGET_ARCH} -Wunused-parameter -Wextra -Wreorder -std=c++11")
|
|
+ elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc64")
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fPIC -mcpu=${TARGET_ARCH} -mtune=${TARGET_ARCH} -Wunused-parameter -Wextra -Wreorder -std=c++11")
|
|
elseif(NOT WIN32)
|
|
CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
|
|
if (ENABLE_XTL_COMPLEX)
|