From 5348a9ab7a6ab5cb11b6180f950d2da72fd83268 Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Mon, 2 Sep 2019 18:54:43 +0000 Subject: [PATCH] Default to C++11 Signed-off-by: Jacob Perron --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 753993d..b406f58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,11 @@ option(LIBCREATE_BUILD_TESTS "Enable the build of tests." ON) find_package(Boost REQUIRED COMPONENTS system thread) find_package(Threads REQUIRED) +# Default to C++11 +if(NOT CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 11) +endif() + ######### # Build # #########