From 7c525318b509c5bc39c6c30a75086d4b3d068fcc Mon Sep 17 00:00:00 2001 From: Michael Tryby Date: Fri, 16 Feb 2018 15:20:42 -0500 Subject: [PATCH] Adding flag to compile for c++11 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be07e6b..56c4f4b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,10 @@ IF (MSVC) add_definitions(-D_CRT_SECURE_NO_DEPRECATE) ENDIF (MSVC) +if(UNIX) + set(CMAKE_CXX_FLAGS "-std=c++11") +endif(UNIX) + include_directories(include src tools/epanet-output/src) # configure file groups