aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-05-30 21:21:36 +0200
committerRiccardo Spagni <ric@spagni.net>2017-05-30 21:21:36 +0200
commit9ea7fbed8a5631f60a6cb561ec64dbf3d6c58024 (patch)
treed2c3517539166ccfef9f709bf5c0f7ceb9415204
parent907ce14b186c9700161bbf9f6335c6531b2121a2 (diff)
parentdd8e3266b291d6817d2d680f05f1663ab6869ac2 (diff)
downloadmonzero-core-9ea7fbed8a5631f60a6cb561ec64dbf3d6c58024.tar.gz
monzero-core-9ea7fbed8a5631f60a6cb561ec64dbf3d6c58024.tar.xz
monzero-core-9ea7fbed8a5631f60a6cb561ec64dbf3d6c58024.zip
Merge pull request #2032
dd8e3266 shared libs build (i.e. make debug) (stoffu)
-rw-r--r--CMakeLists.txt2
-rw-r--r--contrib/epee/src/mlog.cpp2
-rw-r--r--src/mnemonics/CMakeLists.txt1
3 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d584e41c0..a9d6be986 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -338,6 +338,8 @@ if (UNIX AND NOT APPLE)
find_package(Threads)
endif()
+add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)
+
add_subdirectory(external)
# Final setup for miniupnpc
diff --git a/contrib/epee/src/mlog.cpp b/contrib/epee/src/mlog.cpp
index 7487fdbd2..3be992374 100644
--- a/contrib/epee/src/mlog.cpp
+++ b/contrib/epee/src/mlog.cpp
@@ -31,8 +31,6 @@
#include <atomic>
#include "misc_log_ex.h"
-INITIALIZE_EASYLOGGINGPP
-
#undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "logging"
diff --git a/src/mnemonics/CMakeLists.txt b/src/mnemonics/CMakeLists.txt
index c521a0932..269cfe846 100644
--- a/src/mnemonics/CMakeLists.txt
+++ b/src/mnemonics/CMakeLists.txt
@@ -55,6 +55,7 @@ monero_add_library(mnemonics
${mnemonics_private_headers})
target_link_libraries(mnemonics
PUBLIC
+ easylogging
${Boost_SYSTEM_LIBRARY}
PRIVATE
${EXTRA_LIBRARIES})