Compare commits

...

2 Commits

Author SHA1 Message Date
Victor Mataré
35c1781c5d
Merge pull request #220 from leegarrett/patch-2
Fix build on RISC-V
2023-04-13 01:42:44 +02:00
Lee Garrett
a1e829c9e3
Fix build on RISC-V 2023-01-14 21:36:04 +01:00

View File

@ -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()