[x265] CMakeLists.txt: print correct target processor
djcj
djcj at gmx.de
Mon Aug 11 12:28:12 CEST 2014
Here's a patch to print the correct target processor on x86_64 machines:
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -37,12 +37,14 @@
set(X86_ALIASES x86 i386 i686 x86_64 amd64)
list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
- message(STATUS "Detected x86 target processor")
set(X86 1)
add_definitions(-DX265_ARCH_X86=1)
if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8)
+ message(STATUS "Detected x86_64 target processor")
set(X64 1)
add_definitions(-DX86_64=1)
+ elseif()
+ message(STATUS "Detected x86 target processor")
endif()
elseif(${SYSPROC} STREQUAL "armv6l")
message(STATUS "Detected ARM target processor")
More information about the x265-devel
mailing list