[x265] cmake: fix
Satoshi Nakagawa
nakagawa424 at oki.com
Sat Feb 1 08:16:43 CET 2014
# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1391238866 -32400
# Sat Feb 01 16:14:26 2014 +0900
# Node ID b2e76dbb1ec80f633c3f4197442acb40fa7b0385
# Parent 413ad959a5c6a397eea5399c0719d14e439933a5
cmake: fix
diff -r 413ad959a5c6 -r b2e76dbb1ec8 source/CMakeLists.txt
--- a/source/CMakeLists.txt Fri Jan 31 16:53:36 2014 -0600
+++ b/source/CMakeLists.txt Sat Feb 01 16:14:26 2014 +0900
@@ -30,6 +30,13 @@
endif()
endif()
+if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
+ set(X86 1)
+ add_definitions(-DX265_ARCH_X86=1)
+ set(X64 1)
+ add_definitions(-DX86_64=1)
+endif()
+
if(CMAKE_GENERATOR STREQUAL "Xcode")
set(XCODE 1)
endif()
More information about the x265-devel
mailing list