From acd042c23454c2be617cbdf4d1b562b7c542a2c1 Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 24 Oct 2018 09:55:40 +0700 Subject: [PATCH] #839 Fixed FreeBSD compile. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1becac5c..4ebfdbd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,11 +155,11 @@ else() src/Mem_unix.cpp ) - set(EXTRA_LIBS pthread rt dl) -endif() - -if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) - set(EXTRA_LIBS ${EXTRA_LIBS} kvm) + if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) + set(EXTRA_LIBS kvm) + else() + set(EXTRA_LIBS pthread rt dl) + endif() endif() if (CMAKE_SYSTEM_NAME MATCHES "Linux")