Adding flag to compile for c++11
This commit is contained in:
@@ -57,10 +57,6 @@ IF (MSVC)
|
|||||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||||
ENDIF (MSVC)
|
ENDIF (MSVC)
|
||||||
|
|
||||||
if(UNIX)
|
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++11")
|
|
||||||
endif(UNIX)
|
|
||||||
|
|
||||||
include_directories(include src tools/epanet-output/src)
|
include_directories(include src tools/epanet-output/src)
|
||||||
|
|
||||||
# configure file groups
|
# configure file groups
|
||||||
|
|||||||
@@ -12,6 +12,10 @@
|
|||||||
#Setup CMake to run tests
|
#Setup CMake to run tests
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
set(CMAKE_CXX_FLAGS "-std=c++11")
|
||||||
|
endif(UNIX)
|
||||||
|
|
||||||
#Prep ourselves for compiling boost
|
#Prep ourselves for compiling boost
|
||||||
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
|
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
|
||||||
include_directories (${Boost_INCLUDE_DIRS} ../include ../tools/epanet-output/src)
|
include_directories (${Boost_INCLUDE_DIRS} ../include ../tools/epanet-output/src)
|
||||||
|
|||||||
Reference in New Issue
Block a user