Merge pull request #2287 from pkubaj/patch-1

CMake: Fix build on ppc64
This commit is contained in:
Jim 2020-01-04 03:37:25 -08:00 committed by GitHub
commit 8870676667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ if(${CMAKE_C_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_CXX_COMPILER_ID} MATCHES "C
set(CMAKE_COMPILER_IS_CLANG TRUE)
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64(le)?")
add_compile_definitions(NO_WARN_X86_INTRINSICS)
endif()

View file

@ -23,7 +23,7 @@ add_library(media-playback STATIC
${media-playback_SOURCES}
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64(le)?")
target_compile_options(media-playback
PUBLIC
-mvsx)

View file

@ -474,7 +474,7 @@ target_compile_definitions(libobs
PUBLIC
HAVE_OBSCONFIG_H)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64(le)?")
target_compile_options(libobs
PUBLIC
-mvsx)