From d41a6550d048bc81427a770ee2def9c8a54f187a Mon Sep 17 00:00:00 2001 From: HanzZ Date: Tue, 20 Sep 2011 18:21:38 +0200 Subject: [PATCH] Fixed boost::filesystem compatibility with newer boost --- CMakeLists.txt | 1 + spectrum/src/main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ce72640..4d6c76b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,7 @@ FIND_PACKAGE(Qt4 COMPONENTS QtCore) # ADD_DEFINITIONS(${SWIFTEN_CFLAGS}) ADD_DEFINITIONS(-DSUPPORT_LEGACY_CAPS) +ADD_DEFINITIONS(-DBOOST_FILESYSTEM_VERSION=2) message(" Supported features") message("-----------------------") diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index ef210343..4ceb1bb4 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -23,6 +23,7 @@ #include "log4cxx/propertyconfigurator.h" #include "log4cxx/consoleappender.h" #include "libgen.h" +#include using namespace log4cxx;