**File:** cmake/OpenCVDetectCUDALanguage.cmake
**Change Type:** added
**Context:** PR #23021: `cuda`: CMake add CUDA first class language support

**Code Changes:**
```diff
@@ -0,0 +1,154 @@
+#######################
+# Previously in FindCUDA and still required for FindCUDNN
+macro(FIND_CUDA_HELPER_LIBS _name)
+  if(CMAKE_CROSSCOMPILING AND (ARM OR AARCH64))
+    set(_cuda_cross_arm_lib_dir "lib/stubs")
+  endif()
+  find_library(CUDA_${_name}_LIBRARY ${_name}
+    NAMES ${_name}
+    PATHS "${CUDAToolkit_LIBRARY_ROOT}"
```

Review comment:
Where can I observe the errors realted to the missing "=" sign in the log? My output from without these changes for **mean_shift.cu** is > [2023-08-28T17:36:27.871128 7577 ] === CCACHE 4.8.2 STARTED ========================================= > [2023-08-28T17:36:27.871138 7577 ] Configuration file: /home/b/.ccache/ccache.conf > [2023-08-28T17:36:27.871140 7577 ] System configuration file: /usr/local/etc/ccache.conf > [2023-08-28T17:36:27.871140 7577 ] Config: (default) absolute_paths_in_stderr = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) base_dir = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) cache_dir = /home/b/.ccache > [2023-08-28T17:36:27.871140 7577 ] Config: (default) compiler = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) compiler_check = mtime > [2023-08-28T17:36:27.871140 7577 ] Config: (default) compiler_type = auto > [2023-08-28T17:36:27.871140 7577 ] Config: (default) compression = true > [2023-08-28T17:36:27.871140 7577 ] Config: (default) compression_level = 0 > [2023-08-28T17:36:27.871140 7577 ] Config: (default) cpp_extension = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) debug = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) debug_dir = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) depend_mode = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) direct_mode = true > [2023-08-28T17:36:27.871140 7577 ] Config: (default) disable = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) extra_files_to_hash = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) file_clone = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) hard_link = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) hash_dir = true > [2023-08-28T17:36:27.871140 7577 ] Config: (default) ignore_headers_in_manifest = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) ignore_options = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) inode_cache = true > [2023-08-28T17:36:27.871140 7577 ] Config: (default) keep_comments_cpp = false > [2023-08-28T17:36:27.871140 7577 ] Config: (/home/b/.ccache/ccache.conf) log_file = /home/b/.ccache/log.txt > [2023-08-28T17:36:27.871140 7577 ] Config: (default) max_files = 0 > [2023-08-28T17:36:27.871140 7577 ] Config: (/home/b/.ccache/ccache.conf) max_size = 5.0 GB > [2023-08-28T17:36:27.871140 7577 ] Config: (default) msvc_dep_prefix = Note: including file: > [2023-08-28T17:36:27.871140 7577 ] Config: (default) namespace = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) path = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) pch_external_checksum = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) prefix_command = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) prefix_command_cpp = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) read_only = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) read_only_direct = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) recache = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) remote_only = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) remote_storage = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) reshare = false > [2023-08-28T17:36:27.871140 7577 ] Config: (default) run_second_cpp = true > [2023-08-28T17:36:27.871140 7577 ] Config: (default) sloppiness = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) stats = true > [2023-08-28T17:36:27.871140 7577 ] Config: (default) stats_log = > [2023-08-28T17:36:27.871140 7577 ] Config: (default) temporary_dir = /mnt/wslg/runtime-dir/ccache-tmp > [2023-08-28T17:36:27.871140 7577 ] Config: (default) umask = > [2023-08-28T17:36:27.871160 7577 ] Command line: /usr/local/bin/ccache /usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/build/opencv/cudaimgproc_ccache_log/3rdparty/ippicv/ippicv_lnx/icv/include -I/home/b/build/opencv/cudaimgproc_ccache_log/3rdparty/ippicv/ippicv_lnx/iw/include -I/home/b/repos/opencv/opencv_contrib/modules/cudaimgproc/include -I/home/b/build/opencv/cudaimgproc_ccache_log/modules/cudaimgproc -I/home/b/repos/opencv/opencv_contrib/modules/cudev/include -I/home/b/repos/opencv/opencv/modules/core/include -I/home/b/repos/opencv/opencv/modules/imgproc/include -isystem=/home/b/build/opencv/cudaimgproc_ccache_log -isystem=/usr/local/cuda/include -O3 -DNDEBUG --generate-code=arch=compute_86,code=[sm_86] -Xcompiler=-fPIC -D_FORCE_INLINES -Xcompiler -DCVAPI_EXPORTS -fPIC "-Xcompiler= -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -Wno-undef -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-but-set-variable -O3 -DNDEBUG -DNDEBUG" -std=c++14 -MD -MT modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o -MF CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o.d -x cu -c /home/b/repos/opencv/opencv_contrib/modules/cudaimgproc/src/cuda/mean_shift.cu -o CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o > [2023-08-28T17:36:27.871166 7577 ] Hostname: DESKTOP-15JFLGE > [2023-08-28T17:36:27.871167 7577 ] Working directory: /home/b/build/opencv/cudaimgproc_ccache_log/modules/cudaimgproc > [2023-08-28T17:36:27.871172 7577 ] Compiler: /usr/local/cuda/bin/nvcc > [2023-08-28T17:36:27.871173 7577 ] Compiler type: nvcc > [2023-08-28T17:36:27.871276 7577 ] Source file: /home/b/repos/opencv/opencv_contrib/modules/cudaimgproc/src/cuda/mean_shift.cu > [2023-08-28T17:36:27.871278 7577 ] Dependency file: CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o.d > [2023-08-28T17:36:27.871280 7577 ] Object file: CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o > [2023-08-28T17:36:27.871298 7577 ] Trying direct lookup > [2023-08-28T17:36:27.871385 7577 ] Manifest key: 3f9dv79og5h165mh37qat5gddnnq1nhv0 > [2023-08-28T17:36:27.871396 7577 ] Retrieved 3f9dv79og5h165mh37qat5gddnnq1nhv0 from local storage (/home/b/.ccache/3/f/9dv79og5h165mh37qat5gddnnq1nhv0M) > [2023-08-28T17:36:27.872096 7577 ] Got result key from manifest > [2023-08-28T17:36:27.872101 7577 ] Result key: e5a3051eihi33fco691mmmm4lkvodeoiu > [2023-08-28T17:36:27.872114 7577 ] Retrieved e5a3051eihi33fco691mmmm4lkvodeoiu from local storage (/home/b/.ccache/e/5/a3051eihi33fco691mmmm4lkvodeoiuR) > [2023-08-28T17:36:27.872186 7577 ] Reading embedded entry #0 .o (52552 bytes) > [2023-08-28T17:36:27.872188 7577 ] Writing to CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o > [2023-08-28T17:36:27.872220 7577 ] Reading embedded entry #1 .d (18004 bytes) > [2023-08-28T17:36:27.872221 7577 ] Writing to CMakeFiles/opencv_cudaimgproc.dir/src/cuda/mean_shift.cu.o.d > [2023-08-28T17:36:27.872239 7577 ] Succeeded getting cached result > [2023-08-28T17:36:27.872244 7577 ] Result: direct_cache_hit > [2023-08-28T17:36:27.872245 7577 ] Result: local_storage_hit > [2023-08-28T17:36:27.872246 7577 ] Result: local_storage_read_hit > [2023-08-28T17:36:27.872247 7577 ] Result: local_storage_read_hit > [2023-08-28T17:36:27.872249 7577 ] Acquiring /home/b/.ccache/9/9/stats.lock > [2023-08-28T17:36:27.872267 7577 ] Acquired /home/b/.ccache/9/9/stats.lock > [2023-08-28T17:36:27.872269 7577 ] Creating /home/b/.ccache/9/9/stats.alive > [2023-08-28T17:36:27.872330 7577 ] Releasing /home/b/.ccache/9/9/stats.lock > [2023-08-28T17:36:27.872337 7577 ] Unlink /home/b/.ccache/9/9/stats.alive > [2023-08-28T17:36:27.872344 7577 ] Unlink /home/b/.ccache/9/9/stats.lock > [2023-08-28T17:36:27.872345 7577 ] Released /home/b/.ccache/9/9/stats.lock > [2023-08-28T17:36:27.872349 7577 ] Accumulated stats for inode cache: hits=0, misses=0, errors=0 and calling make after make clean takes a matter of seconds?