define is set in the right place now

This commit is contained in:
Neeflix
2018-07-16 23:03:10 +02:00
parent 0c7f26772a
commit b65321ebe7
2 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,9 @@ set(BOOST_COMPONENTS program_options thread timer chrono)
cmake_minimum_required(VERSION 3.9.1) cmake_minimum_required(VERSION 3.9.1)
project(FlippR-Driver VERSION 0.1.0 LANGUAGES CXX) project(FlippR-Driver VERSION 0.1.0 LANGUAGES CXX)
#set easylogging flags
add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)
# Compile library to output_path # Compile library to output_path
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/${OUTPUT_PATH}) set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/${OUTPUT_PATH})

View File

@@ -16,7 +16,6 @@
// //
#include "easylogging++.h" #include "easylogging++.h"
#define ELPP_NO_DEFAULT_LOG_FILE
#if defined(AUTO_INITIALIZE_EASYLOGGINGPP) #if defined(AUTO_INITIALIZE_EASYLOGGINGPP)
INITIALIZE_EASYLOGGINGPP INITIALIZE_EASYLOGGINGPP