summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2012-04-20 12:11:32 -0700
committerJohnathan Corgan2012-04-20 12:11:32 -0700
commitabb70ac7d26c70d52e83438eb30bdf5d1b64eec8 (patch)
tree9874c933e771dd7b87440450d00a102946fa1e88
parent33146370ca9ffdf7c56b886be46313e7a40cc9fe (diff)
downloadgnuradio-abb70ac7d26c70d52e83438eb30bdf5d1b64eec8.tar.gz
gnuradio-abb70ac7d26c70d52e83438eb30bdf5d1b64eec8.tar.bz2
gnuradio-abb70ac7d26c70d52e83438eb30bdf5d1b64eec8.zip
cmake: fix compiler flags on ppc arch
-rw-r--r--gnuradio-core/src/lib/filter/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/filter/CMakeLists.txt b/gnuradio-core/src/lib/filter/CMakeLists.txt
index d26e55fb8..6a152524e 100644
--- a/gnuradio-core/src/lib/filter/CMakeLists.txt
+++ b/gnuradio-core/src/lib/filter/CMakeLists.txt
@@ -195,6 +195,9 @@ elseif(CMAKE_SYSTEM_PROCESSOR_x86 AND "${CMAKE_SYSTEM_PROCESSOR_x86}" STREQUAL "
${CMAKE_CURRENT_SOURCE_DIR}/short_dotprod_mmx.S
)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)")
+ if(CMAKE_COMPILER_IS_GNUCXX)
+ add_definitions(-maltivec)
+ endif()
list(APPEND gnuradio_core_sources
${CMAKE_CURRENT_SOURCE_DIR}/sysconfig_powerpc.cc
${CMAKE_CURRENT_SOURCE_DIR}/gr_fir_sysconfig_powerpc.cc