mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
40c71a2463
* add -Wno-psabi when using GCC 6 * add -Wundef for CUDA 10 * add -Wdeprecated-declarations when using GCC 7 * add -Wstrict-aliasing and -Wtautological-compare for GCC 7 * replace cudaThreadSynchronize with cudaDeviceSynchronize
11 lines
497 B
CMake
11 lines
497 B
CMake
if(NOT HAVE_CUDA)
|
|
ocv_module_disable(cudalegacy)
|
|
endif()
|
|
|
|
set(the_description "CUDA-accelerated Computer Vision (legacy)")
|
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4130 /wd4324 /wd4512 /wd4310 -Wundef -Wmissing-declarations -Wuninitialized -Wshadow -Wdeprecated-declarations -Wstrict-aliasing -Wtautological-compare)
|
|
|
|
ocv_define_module(cudalegacy opencv_core opencv_video
|
|
OPTIONAL opencv_objdetect opencv_imgproc opencv_calib3d opencv_cudaarithm opencv_cudafilters opencv_cudaimgproc)
|