Skip to content

Commit

Permalink
[cmake] remove useless code for c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan authored Jul 19, 2021
1 parent 089435f commit 5ce66f7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
# ==============================================================================
Expand Down

1 comment on commit 5ce66f7

@simogasp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can also remove src/cmake/CXX11.cmake

Please sign in to comment.