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

@ -28,7 +28,7 @@ add_library(zstd
lib/decompress/zstd_decompress.c
)
if(NOT MSVC AND CPU_ARCH STREQUAL "x64")
if(NOT MSVC AND CPU_ARCH_X64)
target_sources(zstd PRIVATE lib/decompress/huf_decompress_amd64.S)
endif()