mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
Change ERROR to WARNING if CUDA >10 and CMake <3.12
This commit is contained in:
parent
04a00fb175
commit
56fcaaf8fd
@ -144,7 +144,7 @@ find_package(CUDA "8.0")
|
||||
if(CUDA_FOUND)
|
||||
# CUDA >= 10.0 requires CMake >= 3.12.2
|
||||
if((CUDA_VERSION VERSION_EQUAL "10.0" OR CUDA_VERSION VERSION_GREATER "10.0") AND (CMAKE_VERSION VERSION_LESS "3.12.2"))
|
||||
message(FATAL_ERROR "CUDA 10.0+ requires CMake 3.12.2+, while you use CMake ${CMAKE_VERSION}")
|
||||
message(WARNING "On some Unix systems CUDA 10.0+ requires CMake 3.12.2+; you use CMake ${CMAKE_VERSION}")
|
||||
endif()
|
||||
|
||||
if(USE_STATIC_LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user