diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ebb6d34..dd97dacd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,9 @@ endif() if(CMAKE_THREAD_LIBS_INIT) target_link_libraries(urcl PUBLIC "${CMAKE_THREAD_LIBS_INIT}") endif() +if(UNIX AND NOT APPLE) + target_link_libraries(urcl PUBLIC "rt") +endif() # When warnings are treated as errors, also enable high warning level for all targets if(CMAKE_COMPILE_WARNING_AS_ERROR)