diff --git a/CMakeLists.txt b/CMakeLists.txt index a3efc6cbf..ca67eb159 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/deps/media-playback/CMakeLists.txt b/deps/media-playback/CMakeLists.txt index 6557abda2..21d283c6f 100644 --- a/deps/media-playback/CMakeLists.txt +++ b/deps/media-playback/CMakeLists.txt @@ -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) diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt index 9232da609..a0d9eef78 100644 --- a/libobs/CMakeLists.txt +++ b/libobs/CMakeLists.txt @@ -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)