Skip to content

Commit

Permalink
cmake: Enable XXH_X86DISPATCH_ALLOW_AVX by default
Browse files Browse the repository at this point in the history
  • Loading branch information
EXtremeExploit authored Nov 12, 2023
1 parent f4202ef commit e419fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,12 @@ target_include_directories(libatrac9 PUBLIC LibAtrac9/C/src)

option(BUILD_SHARED_LIBS "Build shared library" OFF)
option(XXHASH_BUILD_XXHSUM "Build the xxhsum binary" OFF)
option(XXH_X86DISPATCH_ALLOW_AVX "Allow building XXH3 with AVX even if it crashes on SSE2-Only CPUs" OFF)
set(DISPATCH 1)
add_subdirectory(xxHash/cmake_unofficial EXCLUDE_FROM_ALL)
if(XXH_X86DISPATCH_ALLOW_AVX)
target_compile_definitions(xxhash PRIVATE XXH_X86DISPATCH_ALLOW_AVX)
endif()

# Tracy
option(TRACY_ENABLE_ON_CORE_COMPONENTS
Expand Down

0 comments on commit e419fac

Please sign in to comment.