Fix build with older glibc: link there to librt for clock_gettime

Summary:
Only since glibc version 2.17 -lrt is no longer needed

See same fix done for processui in bb556d8c

Reviewers: #plasma, davidedmundson, mart

Reviewed By: #plasma, davidedmundson, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24749
parent 5ef4204a
......@@ -36,6 +36,10 @@ if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
target_link_libraries(processcore kvm)
endif()
if(NOT HAVE_CLOCK_GETTIME_C)
target_link_libraries(processcore PRIVATE rt)
endif()
target_include_directories(processcore
PUBLIC
"$<BUILD_INTERFACE:${libksysguard_SOURCE_DIR}>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment