Change ERROR to WARNING if CUDA >10 and CMake <3.12

This commit is contained in:
Roman Grundkiewicz 2019-08-11 17:08:38 +01:00
parent 04a00fb175
commit 56fcaaf8fd

View File

@ -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)