From 5ce66f7ff22364f2c39b867637220c8c086b552f Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Mon, 19 Jul 2021 12:19:40 +0200 Subject: [PATCH] [cmake] remove useless code for c++11 --- src/CMakeLists.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6e1decef8f..1b7b2fc494 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -200,18 +200,6 @@ if(CMAKE_COMPILER_IS_GNUCXX) AddCompilerFlag("-Werror=return-local-addr") endif() -# ============================================================================== -# Check C++11 support -# ============================================================================== -include(CXX11) -check_for_cxx11_compiler(CXX11_COMPILER) - -if(NOT CXX11_COMPILER) - message(FATAL_ERROR "The compiler does not support the CXX11 standard.") -endif(NOT CXX11_COMPILER) -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - # ============================================================================== # Enable code coverage generation (only with GCC) # ==============================================================================