From 9876afafb22f86609f5560e8ed731f9b75104f7b Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 14 May 2025 09:28:06 -0400 Subject: [PATCH] Add -mavx --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99c5824..cb2c46a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,10 @@ add_compile_options( -ffunction-sections -fno-omit-frame-pointer) +if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) + add_compile_options(-mavx) +endif() + add_subdirectory(third_party) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")