summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--CMakeLists.txt13
2 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 60a43db..86a97f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
bin/
obj/
+build/
xmr-stak-cpu.layout
xmr-stak-cpu.depend
config-debug.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 738256e..3b85f2e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,18 @@ set(LIBS ${LIBS} ${CMAKE_THREAD_LIBS_INIT})
option(MICROHTTPD_ENABLE "Enable or disable the requirement of microhttp (http deamon)" ON)
if(MICROHTTPD_ENABLE)
+ find_path(MTHD_INCLUDE_DIR
+ NAMES
+ microhttpd.h
+ PATHS
+ /opt/local
+ /usr/local
+ /usr
+ ENV "PROGRAMFILES(X86)"
+ ENV "HWLOC_ROOT"
+ PATH_SUFFIXES
+ include)
+
find_library(MHTD
NAMES
microhttpd
@@ -62,6 +74,7 @@ if(MICROHTTPD_ENABLE)
message(FATAL_ERROR "microhttpd NOT found: use `-DMICROHTTPD_ENABLE=OFF` to build without http deamon support")
else()
set(LIBS ${LIBS} ${MHTD})
+ include_directories(AFTER ${MTHD_INCLUDE_DIR})
endif()
else()
add_definitions("-DCONF_NO_HTTPD")
OpenPOWER on IntegriCloud