Fix build on RISC-V

This commit is contained in:
Lee Garrett 2023-01-14 21:36:04 +01:00 committed by GitHub
parent ebb11146ab
commit a1e829c9e3
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()