Skip to content

Commit 653a523

Browse files
Merge pull request #383 from adierking/rt
build: link against librt if it's available
2 parents 5f49e8b + c71d35d commit 653a523

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ endif()
191191
if(BSD_OVERLAY_FOUND)
192192
target_link_libraries(dispatch PRIVATE ${BSD_OVERLAY_LDFLAGS})
193193
endif()
194+
if(LibRT_FOUND)
195+
target_link_libraries(dispatch PRIVATE RT::rt)
196+
endif()
194197
target_link_libraries(dispatch
195198
PRIVATE
196199
Threads::Threads

0 commit comments

Comments
 (0)