diff --git a/CMakeLists.txt b/CMakeLists.txt index 93dd2b342..ec4597638 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,17 +114,7 @@ if(WITH_LTO) endif() endif() -check_cxx_compiler_flag("-std=c++11" CXX11_AVAILABLE) -if (CXX11_AVAILABLE) - add_gcc_compiler_cxxflags("-std=c++11") -else() - check_cxx_compiler_flag("-std=c++0x" CXX0X_AVAILABLE) - if(CXX0X_AVAILABLE) - add_gcc_compiler_cxxflags("-std=c++0x") - else() - message(FATAL_ERROR "Compiler doesn't support C++11") - endif() -endif() +add_gcc_compiler_cxxflags("-std=c++11") if(APPLE) add_gcc_compiler_cxxflags("-stdlib=libc++")