From aa5820056ec1a21b23c716b2b6519c16f9fe4d04 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 8 Oct 2018 17:32:54 +0200 Subject: Unify c++11 usage in doc's examples and snippets --- doc/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/CMakeLists.txt') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index db413bc65..9f6730b9c 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -10,6 +10,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif(CMAKE_SYSTEM_NAME MATCHES Linux) endif(CMAKE_COMPILER_IS_GNUCXX) +# some examples and snippets needs c++11, so let's check it once +check_cxx_compiler_flag("-std=c++11" EIGEN_COMPILER_SUPPORT_CPP11) + option(EIGEN_INTERNAL_DOCUMENTATION "Build internal documentation" OFF) -- cgit v1.2.3