mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 04:35:46 -04:00
Build: Fix xxhash on non-Windows
This commit is contained in:
@ -1,10 +1,17 @@
|
||||
set(SRCS
|
||||
include/xxh3.h
|
||||
include/xxhash.h
|
||||
src/xxhash.c
|
||||
)
|
||||
|
||||
add_library(xxhash ${SRCS})
|
||||
|
||||
if(${CPU_ARCH} STREQUAL "x86" OR ${CPU_ARCH} STREQUAL "x64")
|
||||
target_sources(xxhash PRIVATE
|
||||
include/xxh_x86dispatch.h
|
||||
src/xxh_x86dispatch.c
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(xxhash PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_include_directories(xxhash INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_compile_definitions(xxhash INTERFACE "XXH_STATIC_LINKING_ONLY")
|
||||
|
Reference in New Issue
Block a user