From 00aa1e4131447fe95b7b8dc5461b349ac1bfb003 Mon Sep 17 00:00:00 2001 From: "julien.waechter" Date: Wed, 2 Mar 2016 10:15:24 +0100 Subject: [PATCH] Updated main CMakeLists with modern CMake syntax for required C++11 standard --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2872c05..0f25d76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,10 @@ cmake_minimum_required(VERSION 2.6) # set project's name project(CAMP) +# require C++11 standard by default +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # include project configuration include(${CMAKE_SOURCE_DIR}/cmake/Config.cmake) include(${CMAKE_SOURCE_DIR}/cmake/PackageFilename.cmake)