mirror of
https://github.com/vmatare/thinkfan.git
synced 2024-10-26 19:38:30 +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})
|
target_link_libraries(thinkfan PRIVATE ${YAML_CPP_LIBRARIES})
|
||||||
endif(USE_YAML)
|
endif(USE_YAML)
|
||||||
|
|
||||||
|
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64")
|
||||||
|
target_link_libraries(thinkfan PRIVATE -latomic)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(SYSTEMD_FOUND)
|
if(SYSTEMD_FOUND)
|
||||||
target_compile_definitions(thinkfan PRIVATE -DHAVE_SYSTEMD)
|
target_compile_definitions(thinkfan PRIVATE -DHAVE_SYSTEMD)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user