Commit 4de963e0 authored by Samuel GAIST's avatar Samuel GAIST

[test][prefix] Update CXX algorithm minimal standard to C++14

It has been the case for a while for beat/beat.backend.cxx>
parent 0561bd60
Pipeline #41058 passed with stage
in 25 minutes and 4 seconds
...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat") ...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat")
# CMake setup # CMake setup
include(CheckCXXCompilerFlag) set(CMAKE_CXX_STANDARD 14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if (COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif (COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
# Retrieve the dependencies # Retrieve the dependencies
......
...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat") ...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat")
# CMake setup # CMake setup
include(CheckCXXCompilerFlag) set(CMAKE_CXX_STANDARD 14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if (COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif (COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
# Retrieve the dependencies # Retrieve the dependencies
......
...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat") ...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat")
# CMake setup # CMake setup
include(CheckCXXCompilerFlag) set(CMAKE_CXX_STANDARD 14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if (COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif (COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
# Retrieve the dependencies # Retrieve the dependencies
......
...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat") ...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat")
# CMake setup # CMake setup
include(CheckCXXCompilerFlag) set(CMAKE_CXX_STANDARD 14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if (COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif (COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
# Retrieve the dependencies # Retrieve the dependencies
......
...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat") ...@@ -6,16 +6,8 @@ set(BEAT_BACKEND_CXX_DIR "/usr/local/beat")
# CMake setup # CMake setup
include(CheckCXXCompilerFlag) set(CMAKE_CXX_STANDARD 14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if (COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif (COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
# Retrieve the dependencies # Retrieve the dependencies
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment