From cb048e6f47bd60c2adc0d6bc5c8f967d8322bc02 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 31 Dec 2019 01:19:22 +0700 Subject: [PATCH] Added UUID_LIBRARY cmake variable. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcec163..9f0e8f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,7 +143,11 @@ else() if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) set(EXTRA_LIBS pthread) else() - set(EXTRA_LIBS pthread uuid.a rt dl) + if (NOT UUID_LIBRARY) + set(UUID_LIBRARY "uuid.a") + endif() + + set(EXTRA_LIBS pthread ${UUID_LIBRARY} rt dl) endif() endif()