#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 set(HEADERS
src/api/Api.h
src/api/NetworkState.h src/api/NetworkState.h
src/App.h src/App.h
src/Console.h src/Console.h
@ -87,7 +86,6 @@ else()
endif() endif()
set(SOURCES set(SOURCES
src/api/Api.cpp
src/api/NetworkState.cpp src/api/NetworkState.cpp
src/App.cpp src/App.cpp
src/Console.cpp src/Console.cpp
@ -214,11 +212,13 @@ if (WITH_HTTPD)
if (MHD_FOUND) if (MHD_FOUND)
include_directories(${MHD_INCLUDE_DIRS}) include_directories(${MHD_INCLUDE_DIRS})
set(HTTPD_SOURCES set(HTTPD_SOURCES
src/api/Api.h
src/api/ApiRouter.h src/api/ApiRouter.h
src/api/HttpBody.h src/api/HttpBody.h
src/api/Httpd.h src/api/Httpd.h
src/api/HttpReply.h src/api/HttpReply.h
src/api/HttpRequest.h src/api/HttpRequest.h
src/api/Api.cpp
src/api/ApiRouter.cpp src/api/ApiRouter.cpp
src/api/Httpd.cpp src/api/Httpd.cpp
src/api/HttpRequest.cpp src/api/HttpRequest.cpp