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/")