Ensure gcc is at least 5.x (#4538)

* make sure that xgboost has gcc 5.x at the very least to build on gcc tool chain
This commit is contained in:
sriramch 2019-06-06 14:08:08 -07:00 committed by Jiaming Yuan
parent afa99e6d9d
commit 59ae42a179

View File

@ -9,6 +9,10 @@ if (MSVC)
cmake_minimum_required(VERSION 3.11) cmake_minimum_required(VERSION 3.11)
endif (MSVC) endif (MSVC)
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
message(FATAL_ERROR "GCC version must be at least 5.0!")
endif()
set_default_configuration_release() set_default_configuration_release()
#-- Options #-- Options