Merge pull request #220 from leegarrett/patch-2

Fix build on RISC-V
This commit is contained in:
Victor Mataré 2023-04-13 01:42:44 +02:00 committed by GitHub
commit 35c1781c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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