mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +00:00
Fix FindMHD.cmake
This commit is contained in:
parent
0e60c5802d
commit
2c2b3d2f36
1 changed files with 3 additions and 1 deletions
|
@ -11,16 +11,18 @@ find_path(
|
||||||
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
||||||
PATH_SUFFIXES "include"
|
PATH_SUFFIXES "include"
|
||||||
DOC "microhttpd include dir"
|
DOC "microhttpd include dir"
|
||||||
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
find_path(MHD_INCLUDE_DIR NAMES microhttpd.h)
|
find_path(MHD_INCLUDE_DIR NAMES microhttpd.h)
|
||||||
|
|
||||||
find_library(
|
find_library(
|
||||||
MHD_LIBRARY
|
MHD_LIBRARY
|
||||||
NAMES microhttpd libmicrohttpd
|
NAMES libmicrohttpd.a microhttpd libmicrohttpd
|
||||||
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
||||||
PATH_SUFFIXES "lib"
|
PATH_SUFFIXES "lib"
|
||||||
DOC "microhttpd library"
|
DOC "microhttpd library"
|
||||||
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(MHD_LIBRARY NAMES microhttpd libmicrohttpd)
|
find_library(MHD_LIBRARY NAMES microhttpd libmicrohttpd)
|
||||||
|
|
Loading…
Reference in a new issue