From 4ee594d0fd014babd93b9ab64da4630584d3073c Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 7 Oct 2020 20:11:05 -0400 Subject: [PATCH] Link rt for AIO on Linux --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9dcaa0..4d9bb67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,9 @@ else() target_sources(kabufuda PRIVATE lib/kabufuda/AsyncIOPosix.cpp ) + if(NOT APPLE) + target_link_libraries(kabufuda PUBLIC rt) + endif() endif() target_include_directories(kabufuda PUBLIC $)