From 0bba8849f0385d8d9286509f86e497a00b6647d0 Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 4 Oct 2018 20:00:18 +0300 Subject: [PATCH] Fix Linux build. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fa22d7f..e7417c76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,7 @@ elseif (APPLE) set(SOURCES_OS mac/cpu_mac.c mac/memory_mac.c mac/xmrig_mac.c) else() set(SOURCES_OS unix/cpu_unix.c unix/memory_unix.c unix/xmrig_unix.c) - set(EXTRA_LIBS pthread) + set(EXTRA_LIBS pthread rt m) endif() include_directories(.)