Merge pull request #324 from stanz2g/master

can build without microhttpd when WITH_HTTPD=OFF
This commit is contained in:
xmrig 2018-01-20 01:35:12 +07:00 committed by GitHub
commit f210708f3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()