mirror of
https://github.com/vmatare/thinkfan.git
synced 2024-08-17 07:20:45 +03:00
Fix build on RISC-V
This commit is contained in:
parent
ebb11146ab
commit
a1e829c9e3
@ -133,6 +133,10 @@ if(USE_YAML)
|
||||
target_link_libraries(thinkfan PRIVATE ${YAML_CPP_LIBRARIES})
|
||||
endif(USE_YAML)
|
||||
|
||||
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64")
|
||||
target_link_libraries(thinkfan PRIVATE -latomic)
|
||||
endif()
|
||||
|
||||
if(SYSTEMD_FOUND)
|
||||
target_compile_definitions(thinkfan PRIVATE -DHAVE_SYSTEMD)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user