From 51df4222db36b413acf3055144c6b4e3d821c75d Mon Sep 17 00:00:00 2001 From: champtar Date: Tue, 21 Aug 2018 13:15:18 -0400 Subject: [PATCH] Fix x86_64 detection on CentOS7 / Fedora (#2912) * Fix x86_64 detection on CentOS7 / Fedora CMAKE_LIBRARY_ARCHITECTURE is empty on CentOS7 / Fedora CMAKE_SYSTEM_PROCESSOR is what we really want only tested on CentOS7 / Fedora 28 Signed-off-by: Etienne Champetier * Support freebsd --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ae51712f6a..bec91ce705a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,7 +78,7 @@ if (USE_STATIC_LIBRARIES) list(REVERSE CMAKE_FIND_LIBRARY_SUFFIXES) endif () -if (CMAKE_LIBRARY_ARCHITECTURE MATCHES "amd64.*|x86_64.*|AMD64.*") +if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64|x86_64") option (USE_INTERNAL_MEMCPY "Use internal implementation of 'memcpy' function instead of provided by libc. Only for x86_64." ON) if (OS_LINUX)