diff --git a/cmake/FindMHD.cmake b/cmake/FindMHD.cmake index b1e4e895..7a598e02 100644 --- a/cmake/FindMHD.cmake +++ b/cmake/FindMHD.cmake @@ -11,16 +11,18 @@ find_path( PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS" PATH_SUFFIXES "include" DOC "microhttpd include dir" + NO_DEFAULT_PATH ) find_path(MHD_INCLUDE_DIR NAMES microhttpd.h) find_library( MHD_LIBRARY - NAMES microhttpd libmicrohttpd + NAMES libmicrohttpd.a microhttpd libmicrohttpd PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS" PATH_SUFFIXES "lib" DOC "microhttpd library" + NO_DEFAULT_PATH ) find_library(MHD_LIBRARY NAMES microhttpd libmicrohttpd)