mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Fix FindUV.cmake and FindMHD.cmake.
This commit is contained in:
parent
fdc9fbe876
commit
c0ca68e2db
2 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,8 @@ find_path(
|
||||||
DOC "microhttpd include dir"
|
DOC "microhttpd include dir"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_path(MHD_INCLUDE_DIR NAMES microhttpd.h)
|
||||||
|
|
||||||
find_library(
|
find_library(
|
||||||
MHD_LIBRARY
|
MHD_LIBRARY
|
||||||
NAMES microhttpd libmicrohttpd
|
NAMES microhttpd libmicrohttpd
|
||||||
|
@ -21,6 +23,8 @@ find_library(
|
||||||
DOC "microhttpd library"
|
DOC "microhttpd library"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_library(MHD_LIBRARY NAMES microhttpd libmicrohttpd)
|
||||||
|
|
||||||
set(MHD_INCLUDE_DIRS ${MHD_INCLUDE_DIR})
|
set(MHD_INCLUDE_DIRS ${MHD_INCLUDE_DIR})
|
||||||
set(MHD_LIBRARIES ${MHD_LIBRARY})
|
set(MHD_LIBRARIES ${MHD_LIBRARY})
|
||||||
|
|
||||||
|
|
|
@ -3,15 +3,21 @@ find_path(
|
||||||
NAMES uv.h
|
NAMES uv.h
|
||||||
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
||||||
PATH_SUFFIXES "include"
|
PATH_SUFFIXES "include"
|
||||||
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_path(UV_INCLUDE_DIR NAMES uv.h)
|
||||||
|
|
||||||
find_library(
|
find_library(
|
||||||
UV_LIBRARY
|
UV_LIBRARY
|
||||||
NAMES libuv.a uv libuv
|
NAMES libuv.a uv libuv
|
||||||
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
||||||
PATH_SUFFIXES "lib"
|
PATH_SUFFIXES "lib"
|
||||||
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_library(UV_LIBRARY NAMES libuv.a uv libuv)
|
||||||
|
|
||||||
set(UV_LIBRARIES ${UV_LIBRARY})
|
set(UV_LIBRARIES ${UV_LIBRARY})
|
||||||
set(UV_INCLUDE_DIRS ${UV_INCLUDE_DIR})
|
set(UV_INCLUDE_DIRS ${UV_INCLUDE_DIR})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue