CMake: Support multiple CMAKE_OSX_ARCHITECTURES

This commit is contained in:
Stenzek
2023-11-24 19:14:57 +10:00
parent af86e5d058
commit 7cc52bba23
23 changed files with 106 additions and 82 deletions

View File

@ -5,7 +5,7 @@ set(SRCS
add_library(xxhash ${SRCS})
if(${CPU_ARCH} STREQUAL "x86" OR ${CPU_ARCH} STREQUAL "x64")
if(CPU_ARCH_X86 OR CPU_ARCH_X64)
# Required if building with -mavx or -march=native, but you shouldn't be building with it.
target_compile_definitions(xxhash PRIVATE "XXH_X86DISPATCH_ALLOW_AVX")
target_sources(xxhash PRIVATE