Skip to content

Commit a5fdcf9

Browse files
committed
Merge pull request opencv#17700 from asmorkalov:as/cuda_cmake_compat
2 parents a711e2a + 0ccc839 commit a5fdcf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/OpenCVDetectCUDA.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
if(CUDA_FOUND)
3333
set(HAVE_CUDA 1)
34-
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
34+
if(NOT CUDA_VERSION VERSION_LESS 11.0)
3535
# CUDA 11.0 removes nppicom
3636
ocv_list_filterout(CUDA_nppi_LIBRARY "nppicom")
3737
ocv_list_filterout(CUDA_npp_LIBRARY "nppicom")

0 commit comments

Comments
 (0)