From 880667da5431a9be602030a0d004815543807ac5 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Sat, 2 Nov 2019 19:56:42 +0100 Subject: [PATCH] Disabled C++11 until the code is fixed --- neo/CMakeLists.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index b8ef7fef..e19318d2 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -86,16 +86,16 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") #add_definitions(-Wall) add_definitions(-Werror=format-security) add_definitions(-Werror=format) - include(CheckCXXCompilerFlag) - CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) - CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) - if(COMPILER_SUPPORTS_CXX11) - add_definitions(-std=c++11) - elseif(COMPILER_SUPPORTS_CXX0X) - add_definitions(-std=c++0x) - else() - message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.") - endif() + #include(CheckCXXCompilerFlag) + #CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) + #CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) + #if(COMPILER_SUPPORTS_CXX11) + # add_definitions(-std=c++11) + #elseif(COMPILER_SUPPORTS_CXX0X) + # add_definitions(-std=c++0x) + #else() + # message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.") + #endif() if(CPU_TYPE) add_definitions(-DCPUSTRING="${CPU_TYPE}") endif()