Imported Debian patch 1.4-3~trusty
[deb_x265.git] / debian / patches / cpu-detection.patch
1 --- a/source/CMakeLists.txt
2 +++ b/source/CMakeLists.txt
3 @@ -39,12 +39,14 @@
4 set(X86_ALIASES x86 i386 i686 x86_64 amd64)
5 list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
6 if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
7 - message(STATUS "Detected x86 target processor")
8 set(X86 1)
9 add_definitions(-DX265_ARCH_X86=1)
10 if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8)
11 + message(STATUS "Detected x86_64 system processor")
12 set(X64 1)
13 add_definitions(-DX86_64=1)
14 + else()
15 + message(STATUS "Detected x86 system processor")
16 endif()
17 elseif(${SYSPROC} STREQUAL "armv6l")
18 message(STATUS "Detected ARM target processor")