From 86234921506944dddab4e2f5edf96bf747be6c73 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 9 Jul 2015 14:53:14 +0100 Subject: [PATCH] Interpret x86_64 as x86-64 for architecture --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 805b42a7..b52ea8f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,11 @@ else() if(ARCH STREQUAL "default") set(ARCH_FLAG "") else() - set(ARCH_FLAG "-march=${ARCH}") + if(ARCH STREQUAL "x86_64") + set(ARCH_FLAG "-march=x86-64") + else() + set(ARCH_FLAG "-march=${ARCH}") + endif() endif() set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized") if(CMAKE_C_COMPILER_ID STREQUAL "Clang")