From 9a95827ea72574c3e861aa3167c0b96b9bae64b3 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 24 Sep 2019 18:12:18 +0000 Subject: [PATCH] easylogging++: ensure it finds boost headers --- CMakeLists.txt | 3 ++- external/easylogging++/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b4cc80d3..241e2b4df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -451,7 +451,6 @@ ExternalProject_Add(generate_translations_header CMAKE_ARGS -DLRELEASE_PATH=${LRELEASE_PATH} INSTALL_COMMAND cmake -E echo "") include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations") -add_subdirectory(external) # Final setup for libunbound include_directories(${UNBOUND_INCLUDE}) @@ -1024,3 +1023,5 @@ if (iwyu_tool_path AND PYTHONINTERP_FOUND) VERBATIM ) endif() + +add_subdirectory(external) diff --git a/external/easylogging++/CMakeLists.txt b/external/easylogging++/CMakeLists.txt index 35fb86552..b9b9aea91 100644 --- a/external/easylogging++/CMakeLists.txt +++ b/external/easylogging++/CMakeLists.txt @@ -40,6 +40,7 @@ add_library(easylogging include_directories("${CMAKE_CURRENT_SOURCE_DIR}") include_directories("${CMAKE_CURRENT_BINARY_DIR}") +include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) target_link_libraries(easylogging PRIVATE ${CMAKE_THREAD_LIBS_INIT}