Permalink
Browse files

Make -maltivec optional, to allow fixing the powerpcspe FTBFS.

  • Loading branch information...
1 parent ea02656 commit 2c221e03a85de58a82dc4f5e5c10c6b4d4f8e76b @stigge stigge committed with OdyX Mar 1, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 CMakeLists.txt
View
@@ -142,7 +142,10 @@ ELSEIF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86_64$|^amd64$")
ELSEIF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
SET(ppc 1)
SET(LIB_SUFFIX "" CACHE STRING "Choose the suffix of the lib folder (if any) : None ppc")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec -D__STDC_CONSTANT_MACROS -fPIC")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_CONSTANT_MACROS -fPIC")
+ IF(NOT(DISABLE_ALTIVEC))
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec")
+ ENDIF()
ELSE(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^i[3-6]86$|^x86$")
# All non-x86 non-ppc architectures.
SET(LIB_SUFFIX "" CACHE STRING "Choose the suffix of the lib folder (if any) : None")

0 comments on commit 2c221e0

Please sign in to comment.