Adding flag to compile for c++11

This commit is contained in:
Michael Tryby
2018-02-16 15:25:57 -05:00
parent 7c525318b5
commit 07fa9f4758
2 changed files with 4 additions and 4 deletions

View File

@@ -12,6 +12,10 @@
#Setup CMake to run tests
enable_testing()
if(UNIX)
set(CMAKE_CXX_FLAGS "-std=c++11")
endif(UNIX)
#Prep ourselves for compiling boost
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
include_directories (${Boost_INCLUDE_DIRS} ../include ../tools/epanet-output/src)