mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
cmake: fix CUDA world build
This commit is contained in:
parent
7142f46d1c
commit
142a524d2f
@ -35,7 +35,7 @@ if(DEFINED WINRT AND NOT DEFINED ENABLE_WINRT_MODE_NATIVE)
|
||||
endif()
|
||||
|
||||
if(HAVE_CUDA)
|
||||
if(NOT TARGET opencv_cudev)
|
||||
if(NOT HAVE_opencv_cudev)
|
||||
message(FATAL_ERROR "CUDA: OpenCV requires enabled 'cudev' module from 'opencv_contrib' repository: https://github.com/opencv/opencv_contrib")
|
||||
endif()
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wenum-compare -Wunused-function -Wshadow)
|
||||
|
Loading…
Reference in New Issue
Block a user