can build without microhttpd when WITH_HTTPD=OFF

This commit is contained in:
stanz2g 2018-01-06 17:07:07 +08:00 committed by GitHub
parent 1c68ca4f9d
commit 49337f9992

View file

@ -195,6 +195,7 @@ if (WITH_HTTPD)
message(FATAL_ERROR "microhttpd NOT found: use `-DWITH_HTTPD=OFF` to build without http deamon support")
endif()
else()
set(MHD_LIBRARY "")
add_definitions(/DXMRIG_NO_HTTPD)
add_definitions(/DXMRIG_NO_API)
endif()