Commit 0e005151 authored by Cédric Traizet's avatar Cédric Traizet

REFAC: throw an error if the compiler is not supported

parent db05ee17
Pipeline #2832 passed with stages
in 5 minutes and 38 seconds
......@@ -42,9 +42,8 @@ set(OTB_MIN_MSVC_VER 19)
set(OTB_MIN_Clang_VER 3.4)
if(DEFINED OTB_MIN_${CMAKE_CXX_COMPILER_ID}_VER)
if(CMAKE_CXX_COMPILER_VERSION AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${OTB_MIN_${CMAKE_CXX_COMPILER_ID}_VER})
message(STATUS "WARNING: the version of your ${CMAKE_CXX_COMPILER_ID} "
"compiler is not supported by Orfeo ToolBox (C++14 support might be "
"incomplete). Please consider updating your compiler to version "
message(FATAL_ERROR "The version of your ${CMAKE_CXX_COMPILER_ID} "
"compiler is not supported by Orfeo ToolBox. Please consider updating your compiler to version "
"${OTB_MIN_${CMAKE_CXX_COMPILER_ID}_VER} or later.")
endif()
endif()
......
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