From 9b7081035485abb031d16f8248385aac0f1450fc Mon Sep 17 00:00:00 2001 From: PBerger Date: Mon, 3 Mar 2014 00:41:39 +0100 Subject: [PATCH] Added a compiler directive for GCC to fix a bug occurring in Boost since Version 1.54 with GCC >= 4.7.0 (see https://svn.boost.org/trac/boost/ticket/8774) Former-commit-id: 60b0d1416e6097b3f51d7c4231e40fbeda05f3b2 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 974321f68..d560c2788 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,7 @@ if(CMAKE_COMPILER_IS_GNUCC) message(STATUS "StoRM - Using Compiler Configuration: GCC") # Set standard flags for GCC set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -pedantic") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -pedantic -DBOOST_RESULT_OF_USE_TR1") # -Werror is atm removed as this gave some problems with existing code # May be re-set later # (Thomas Heinemann, 2012-12-21)