From f750268801c43538af337c8ee63f0d0569ad2ee4 Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Wed, 20 Dec 2017 17:28:39 +0100 Subject: [PATCH] Make sure intel architecture is properly detected (#1024) On systems such as FreeBSD, `uname -p` returns amd64 (in lowercase) and -DUSE_AVX_INSTRUCTIONS=1 does not work (the option is ignored). --- dlib/cmake_utils/set_compiler_specific_options.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/cmake_utils/set_compiler_specific_options.cmake b/dlib/cmake_utils/set_compiler_specific_options.cmake index 170a81160..1c6eaaea3 100644 --- a/dlib/cmake_utils/set_compiler_specific_options.cmake +++ b/dlib/cmake_utils/set_compiler_specific_options.cmake @@ -41,7 +41,7 @@ endif() set(gcc_like_compilers GNU Clang Intel) -set(intel_archs x86_64 i386 i686 AMD64 x86) +set(intel_archs x86_64 i386 i686 AMD64 amd64 x86) # Setup some options to allow a user to enable SSE and AVX instruction use.