From c0ca68e2dbbcbd5170e98569af18b012536a3343 Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 14 Mar 2018 06:32:43 +0700 Subject: [PATCH] Fix FindUV.cmake and FindMHD.cmake. --- cmake/FindMHD.cmake | 4 ++++ cmake/FindUV.cmake | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/cmake/FindMHD.cmake b/cmake/FindMHD.cmake index a20ecfec..b1e4e895 100644 --- a/cmake/FindMHD.cmake +++ b/cmake/FindMHD.cmake @@ -13,6 +13,8 @@ find_path( DOC "microhttpd include dir" ) +find_path(MHD_INCLUDE_DIR NAMES microhttpd.h) + find_library( MHD_LIBRARY NAMES microhttpd libmicrohttpd @@ -21,6 +23,8 @@ find_library( DOC "microhttpd library" ) +find_library(MHD_LIBRARY NAMES microhttpd libmicrohttpd) + set(MHD_INCLUDE_DIRS ${MHD_INCLUDE_DIR}) set(MHD_LIBRARIES ${MHD_LIBRARY}) diff --git a/cmake/FindUV.cmake b/cmake/FindUV.cmake index 7906633f..ba59d1d3 100644 --- a/cmake/FindUV.cmake +++ b/cmake/FindUV.cmake @@ -3,15 +3,21 @@ find_path( NAMES uv.h PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS" PATH_SUFFIXES "include" + NO_DEFAULT_PATH ) +find_path(UV_INCLUDE_DIR NAMES uv.h) + find_library( UV_LIBRARY NAMES libuv.a uv libuv PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS" PATH_SUFFIXES "lib" + NO_DEFAULT_PATH ) +find_library(UV_LIBRARY NAMES libuv.a uv libuv) + set(UV_LIBRARIES ${UV_LIBRARY}) set(UV_INCLUDE_DIRS ${UV_INCLUDE_DIR})