summaryrefslogtreecommitdiffstats
path: root/cli-miner.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-04-12 21:15:36 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-04-12 21:15:36 +0200
commita8d40d15fd9c52fd69a330fb0a5b1b55eeb45102 (patch)
treec1ec16cbaec792b722080c497674af307431c1e3 /cli-miner.cpp
parent00568d05e383ad14fee881539f171e00b10adf46 (diff)
downloadxmr-stak-a8d40d15fd9c52fd69a330fb0a5b1b55eeb45102.zip
xmr-stak-a8d40d15fd9c52fd69a330fb0a5b1b55eeb45102.tar.gz
refactor CMake
- allow compiling without microhttpd - allow compiling without OpenSSL - install `config.txt` with command `make install`
Diffstat (limited to 'cli-miner.cpp')
-rw-r--r--cli-miner.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli-miner.cpp b/cli-miner.cpp
index 9eec369..8d5f83e 100644
--- a/cli-miner.cpp
+++ b/cli-miner.cpp
@@ -26,7 +26,10 @@
#include "jconf.h"
#include "console.h"
#include "donate-level.h"
-#include "httpd.h"
+
+#ifndef CONF_NO_HTTPD
+# include "httpd.h"
+#endif
#include <stdlib.h>
#include <stdio.h>
@@ -109,6 +112,7 @@ int main(int argc, char *argv[])
return 0;
}
+#ifndef CONF_NO_HTTPD
if(jconf::inst()->GetHttpdPort() != 0)
{
if (!httpd::inst()->start_daemon())
@@ -117,6 +121,7 @@ int main(int argc, char *argv[])
return 0;
}
}
+#endif
printer::inst()->print_str("-------------------------------------------------------------------\n");
printer::inst()->print_str("XMR-Stak-CPU mining software, CPU Version.\n");
OpenPOWER on IntegriCloud