#502 Fixed build without libmicrohttpd.

This commit is contained in:
XMRig 2018-04-07 00:44:48 +07:00
parent 3a67ee6d11
commit ae647699a4

View file

@ -12,7 +12,6 @@ include (cmake/cpu.cmake)
set(HEADERS
src/api/Api.h
src/api/NetworkState.h
src/App.h
src/Console.h
@ -87,7 +86,6 @@ else()
endif()
set(SOURCES
src/api/Api.cpp
src/api/NetworkState.cpp
src/App.cpp
src/Console.cpp
@ -214,11 +212,13 @@ if (WITH_HTTPD)
if (MHD_FOUND)
include_directories(${MHD_INCLUDE_DIRS})
set(HTTPD_SOURCES
src/api/Api.h
src/api/ApiRouter.h
src/api/HttpBody.h
src/api/Httpd.h
src/api/HttpReply.h
src/api/HttpRequest.h
src/api/Api.cpp
src/api/ApiRouter.cpp
src/api/Httpd.cpp
src/api/HttpRequest.cpp