From b65321ebe7e860953ba9d3b2f3b8b96f47b80d35 Mon Sep 17 00:00:00 2001 From: Neeflix Date: Mon, 16 Jul 2018 23:03:10 +0200 Subject: [PATCH] define is set in the right place now --- FlippR-Driver/CMakeLists.txt | 3 +++ FlippR-Driver/lib/easylogging/easylogging++.cc | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/FlippR-Driver/CMakeLists.txt b/FlippR-Driver/CMakeLists.txt index 0e49983..6c96cf2 100644 --- a/FlippR-Driver/CMakeLists.txt +++ b/FlippR-Driver/CMakeLists.txt @@ -12,6 +12,9 @@ set(BOOST_COMPONENTS program_options thread timer chrono) cmake_minimum_required(VERSION 3.9.1) project(FlippR-Driver VERSION 0.1.0 LANGUAGES CXX) +#set easylogging flags +add_definitions(-DELPP_NO_DEFAULT_LOG_FILE) + # Compile library to output_path set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/${OUTPUT_PATH}) diff --git a/FlippR-Driver/lib/easylogging/easylogging++.cc b/FlippR-Driver/lib/easylogging/easylogging++.cc index 278531a..a87f0b8 100644 --- a/FlippR-Driver/lib/easylogging/easylogging++.cc +++ b/FlippR-Driver/lib/easylogging/easylogging++.cc @@ -16,7 +16,6 @@ // #include "easylogging++.h" -#define ELPP_NO_DEFAULT_LOG_FILE #if defined(AUTO_INITIALIZE_EASYLOGGINGPP) INITIALIZE_EASYLOGGINGPP