From a10c07e47173eb6bac224260139c054e30b6d94b Mon Sep 17 00:00:00 2001 From: janb Date: Wed, 22 Feb 2017 11:06:14 +0100 Subject: [PATCH] Fix build with monero v0.10.3 Credits to janb. --- cnutil/CMakeLists.txt | 3 +++ cnutil/src/cnutil.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cnutil/CMakeLists.txt b/cnutil/CMakeLists.txt index 2f0ee03..f08285b 100644 --- a/cnutil/CMakeLists.txt +++ b/cnutil/CMakeLists.txt @@ -8,9 +8,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GNU_SOURCE") include_directories(${Boost_INCLUDE_DIRS}) include_directories("${MONERO_DIR}/contrib/epee/include") include_directories("${MONERO_DIR}/src") +include_directories("${MONERO_DIR}/external/easylogging++") link_directories( ${MONERO_DIR}/src/cryptonote_core + ${MONERO_DIR}/src/cryptonote_basic ${MONERO_DIR}/src/crypto ${MONERO_DIR}/src/common ${MONERO_DIR}/src/ringct @@ -21,6 +23,7 @@ add_library(${CXXLIB} SHARED src/cnutil.cpp) target_link_libraries(${CXXLIB} cryptonote_core + cryptonote_basic crypto common ringct diff --git a/cnutil/src/cnutil.cpp b/cnutil/src/cnutil.cpp index 22796b2..462d2db 100644 --- a/cnutil/src/cnutil.cpp +++ b/cnutil/src/cnutil.cpp @@ -1,6 +1,6 @@ #include #include -#include "cryptonote_core/cryptonote_format_utils.h" +#include "cryptonote_basic/cryptonote_format_utils.h" #include "common/base58.h" using namespace cryptonote;