[x265] target processor detection message in CMakeLists.txt

djcj djcj at gmx.de
Mon Sep 8 18:29:07 CEST 2014


--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -39,12 +39,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 system processor")
          set(X64 1)
          add_definitions(-DX86_64=1)
+    else()
+        message(STATUS "Detected x86 system processor")
      endif()
  elseif(${SYSPROC} STREQUAL "armv6l")
      message(STATUS "Detected ARM target processor")


More information about the x265-devel mailing list