From 99f23e932ca166ce48595b41c05e9d415fb88d72 Mon Sep 17 00:00:00 2001 From: Dan Weatherill Date: Sat, 14 Apr 2018 20:48:59 +0100 Subject: [PATCH] add c++11 flags in cmake build system --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1af95a8c..46c5c077 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,10 @@ project ("rttr" LANGUAGES CXX) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake") +#enforce requiring c++11 compatible compiler +set(CMAKE_CXX_STANDARD 11) + + if (CMAKE_BUILD_TYPE STREQUAL "") # CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up # differentiation between debug and release builds.