diff --git a/CMakeLists.txt b/CMakeLists.txt index 56c4f4b..be07e6b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,10 +57,6 @@ 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 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 52feb09..4f976bd 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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)