add x86/aarch64 condition for fuse (#118)

This commit is contained in:
kaimary 2025-03-06 23:43:15 +08:00 committed by GitHub
parent 6f8e6e1367
commit bc4827f4c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,8 @@
link_directories(/usr/local/lib/x86_64-linux-gnu/)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
link_directories(/usr/local/lib/x86_64-linux-gnu/)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
link_directories(/usr/local/lib/aarch64-linux-gnu/)
endif()
target_add_lib(hf3fs_fuse common core-app meta-client storage-client fuse3 client-lib-common)
target_add_bin(hf3fs_fuse_main hf3fs_fuse.cpp hf3fs_fuse)