cuda: WITH_CUDA=OFF by default (need to enable it explicitly)

This commit is contained in:
Alexander Alekhin
2018-04-05 19:23:58 +00:00
parent f93c1b942a
commit 4990506948
7 changed files with 9 additions and 10 deletions

View File

@@ -42,6 +42,12 @@ endif(WITH_IPP_A)
# --- CUDA ---
if(WITH_CUDA)
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVDetectCUDA.cmake")
if(NOT HAVE_CUDA)
message(WARNING "OpenCV is not able to find/confidure CUDA SDK (required by WITH_CUDA).
CUDA support will be disabled in OpenCV build.
To eliminate this warning remove WITH_CUDA=ON CMake configuration option.
")
endif()
endif(WITH_CUDA)
# --- Eigen ---