diff --git a/cmake/FindMHD.cmake b/cmake/FindMHD.cmake index a20ecfec2..b1e4e8951 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 7906633f1..ba59d1d3b 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})