From cfcb27802a1c58b2aef8f918ecf34a7677efe34f Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Tue, 6 Aug 2013 17:50:45 +0000 Subject: [PATCH] Added flag "-std=c++11" so that system would compile with gcc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24fe0ef5d..8d61fe58b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,6 +198,8 @@ include_directories(BEFORE if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS) add_definitions(/wd4251 /wd4275 /wd4251 /wd4661) # Disable non-DLL-exported base class and other warnings +else() +# list(APPEND CMAKE_CXX_FLAGS "-std=c++11") endif() if(GTSAM_ENABLE_CONSISTENCY_CHECKS)