mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Restored compatibility with CMake older than 3.7.
This commit is contained in:
parent
a711e2aa41
commit
0ccc839397
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user