Restored compatibility with CMake older than 3.7.

This commit is contained in:
Alexander Smorkalov 2020-06-30 11:28:36 +03:00
parent a711e2aa41
commit 0ccc839397

View File

@ -31,7 +31,7 @@ endif()
if(CUDA_FOUND)
set(HAVE_CUDA 1)
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
if(NOT CUDA_VERSION VERSION_LESS 11.0)
# CUDA 11.0 removes nppicom
ocv_list_filterout(CUDA_nppi_LIBRARY "nppicom")
ocv_list_filterout(CUDA_npp_LIBRARY "nppicom")