Unverified Commit 8e9755ab authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

do not attempt to build with gcc 4.8.5 or older (#2357)

* do not attempt to build with gcc 4.8.5 or older

* add comment
parent 9b502d29
...@@ -58,6 +58,12 @@ if(has_parent) ...@@ -58,6 +58,12 @@ if(has_parent)
endif() endif()
endif() endif()
# As of dlib 19.22, GCC 4.8.5 is no longer supported, building will fail, so let users know.
if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 4.8.5)
message(FATAL_ERROR "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_VERSION} is too old for dlib ${VERSION}.\n\
Either update your compiler to be fully compliant with C++11 or build an older version of dlib, such as 19.21.")
endif()
if (COMMAND pybind11_add_module AND MSVC) if (COMMAND pybind11_add_module AND MSVC)
# True when building a python extension module using Visual Studio. We care # True when building a python extension module using Visual Studio. We care
# about this because a huge number of windows users have broken systems, and # about this because a huge number of windows users have broken systems, and
......
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