mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 19:59:08 +08:00
cmake: emit error if CUDA is enabled without opencv_contrib
This commit is contained in:
parent
8c25a8eb7b
commit
c7c987843c
@ -35,6 +35,9 @@ if(DEFINED WINRT AND NOT DEFINED ENABLE_WINRT_MODE_NATIVE)
|
||||
endif()
|
||||
|
||||
if(HAVE_CUDA)
|
||||
if(NOT TARGET 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)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user