Commit dc9f0c88 authored by Cédric Traizet's avatar Cédric Traizet

Merge branch '1964_stop_cmake_config' into 'develop'

Stop in cmake configure when the compiler is not supported

Closes #1964

See merge request !614
parents 0fbbbae4 09cc4128
Pipeline #2879 passed with stages
in 11 minutes and 20 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()
......
......@@ -85,6 +85,9 @@ GNU/Linux and macOS
Setting up the build environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: On some distibutions, gcc 5+ is not available by default. For example in CentOS 7 the default version
is 4.8 (gcc 7 can be installed using devtoolset, see devtoolset6_ and devtoolset7_).
The first thing to do is to create a directory for working with OTB.
This guide will use ``~/OTB`` but you are free to choose something
else. In this directory, there will be three locations:
......@@ -410,3 +413,7 @@ Then, build the target:
::
make CookBookPDF
.. _devtoolset6: https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/
.. _devtoolset7: https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
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