Skip to content
Snippets Groups Projects
Commit 8e99c3b1 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Make AVX setting less annoying

parent fe7c5681
No related branches found
No related tags found
No related merge requests found
...@@ -45,12 +45,9 @@ set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING ...@@ -45,12 +45,9 @@ set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING
"Supported build types." FORCE) "Supported build types." FORCE)
# SIMD config # SIMD config
option(USE_SSE42 "Enable usage of the SSE4.2 instruction set" ON)
option(USE_AVX "Enable usage of the AVX instruction set" OFF)
option(USE_AVX2 "Enable usage of the AVX2 instruction set" OFF) option(USE_AVX2 "Enable usage of the AVX2 instruction set" OFF)
if((USE_SSE42 AND USE_AVX) OR (USE_SSE42 AND USE_AVX AND USE_AVX2) OR (USE_AVX AND USE_AVX2)) option(USE_AVX "Enable usage of the AVX instruction set" OFF)
message(FATAL_ERROR "Usage of multiple SIMD flags is unsupported") option(USE_SSE42 "Enable usage of the SSE4.2 instruction set" ON)
endif()
# Warnings # Warnings
option(DISABLE_FATAL_WARNINGS "Disable warnings as errors" ON) option(DISABLE_FATAL_WARNINGS "Disable warnings as errors" ON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment