message: Enable CUDA_NVCC_FLAGS at arch detect step.
diff: @@ -73,7 +73,7 @@ if(CUDA_FOUND)
  elseif(CUDA_GENERATION STREQUAL "Volta")
  set(__cuda_arch_bin "7.0")
  elseif(CUDA_GENERATION STREQUAL "Auto")
  - execute_process( COMMAND "${CUDA_NVCC_EXECUTABLE}" "${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu" "--run"
  + execute_process( COMMAND "${CUDA_NVCC_EXECUTABLE}" ${CUDA_NVCC_FLAGS} "${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu" "--run"
  WORKING_DIRECTORY "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/"
  RESULT_VARIABLE _nvcc_res OUTPUT_VARIABLE _nvcc_out
  ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
  @@ -90,7 +90,7 @@ if(CUDA_FOUND)
  set(__cuda_arch_bin "3.2")
  set(__cuda_arch_ptx "")
  elseif(AARCH64)
  - execute_process( COMMAND "${CUDA_NVCC_EXECUTABLE}" "${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu" "--run"
  + execute_process( COMMAND "${CUDA_NVCC_EXECUTABLE}" ${CUDA_NVCC_FLAGS} "${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu" "--run"
  WORKING_DIRECTORY "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/"
  RESULT_VARIABLE _nvcc_res OUTPUT_VARIABLE _nvcc_out
  ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
  