From 96fb3d1d1b2e8ea0982b9f06993f80e20914a3a2 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Mon, 20 Dec 2021 21:33:12 +0300 Subject: [PATCH] Some systems need rt library --- CMakeLists.txt | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6677470..c83e446 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,6 +179,11 @@ if (APPLE) list(APPEND ALL_LIBRARIES "-framework Foundation -framework ApplicationServices -framework AppKit") endif() +# Some systems need rt library +if (NOT WIN32 AND NOT APPLE) + list(APPEND ALL_LIBRARIES rt) +endif() + # Try various libdb library file extensions if (EXISTS ${BerkeleyDB_LIBS}/libdb_cxx.a) list(APPEND ALL_LIBRARIES ${BerkeleyDB_LIBS}/libdb_cxx.a) -- 1.7.1