CMake defaults to C++11
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95bdf68..758293c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,13 +10,13 @@
set(BENCHMARK_DIR ${CATCH_DIR}/projects/Benchmark)
set(HEADER_DIR ${CATCH_DIR}/include)
-if(USE_CPP11)
- ## We can't turn this on by default, since it breaks on travis
- message(STATUS "Enabling C++11")
- set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
-elseif(USE_CPP14)
+if(USE_CPP14)
message(STATUS "Enabling C++14")
set(CMAKE_CXX_FLAGS "-std=c++14 ${CMAKE_CXX_FLAGS}")
+else()
+ message(STATUS "Enabling C++11")
+ set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
+
endif()
#checks that the given hard-coded list contains all headers + sources in the given folder