зеркало из https://github.com/microsoft/LightGBM.git
Update CMakeLists.txt
This commit is contained in:
Родитель
72905d798a
Коммит
03705c3b8d
|
@ -6,6 +6,18 @@ OPTION(USE_MPI "MPI based parallel learning" OFF)
|
|||
OPTION(USE_OPENMP "Enable OpenMP" ON)
|
||||
OPTION(USE_GPU "Enable GPU-acclerated training (EXPERIMENTAL)" OFF)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8.2")
|
||||
message(FATAL_ERROR "Insufficient gcc version")
|
||||
endif()
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.8")
|
||||
message(FATAL_ERROR "Insufficient Clang version")
|
||||
endif()
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||
message(FATAL_ERROR "AppleClang wasn't supported. Please see https://github.com/Microsoft/LightGBM/wiki/Installation-Guide#osx")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
OPTION(APPLE_OUTPUT_DYLIB "Output dylib shared library" OFF)
|
||||
endif()
|
||||
|
|
Загрузка…
Ссылка в новой задаче