CUDA cublas.so libraries not properly detected by CMake-Gui 3.16.0 (Linux)
When building OpenCV v4.1.2 (latest), all CUDA libraries and folders seem to be located correctly by CMake-GUI, until the WITH_CUBLAS flag is selected.
All the regular CUDA files and folders seem to be detected correctly, in /usr/local/cuda-10.1.
HOWEVER, the latest CUDA versions have changed the folder location for the libcublas.so files from /usr/local/... to /usr/lib/x86_64-linux-gnu. Perhaps the CMake detection functions corresponding to those particular cublas lib files have not been updated to find the new folder location?
I have also tried setting the folder CUDA_cublas_LIBRARY manually, to the libcublas.so file in the correct folder, but after running 'Configure', that option is reset to CUDA_cublas_LIBRARY-NOTFOUND, and a cascade of dependency errors for various files appears under the main error message:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cublas_LIBRARY (ADVANCED) linked by target "opencv_cudev" in directory /DM_Util/_INSTALL_LINUX/OpenCV_4/OpenCV_4.1.2_2019nov20/opencv_contrib/modules/cudev linked by target "opencv_test_cudev" in directory /DM_Util/_INSTALL_LINUX/OpenCV_4/OpenCV_4.1.2_2019nov20/opencv_contrib/modules/cudev/test linked by target "opencv_core" in directory /DM_Util/_INSTALL_LINUX/OpenCV_4/OpenCV_4.1.2_2019nov20/opencv/modules/core linked by target "opencv_test_core" in directory /DM_Util/_INSTALL_LINUX/OpenCV_4/OpenCV_4.1.2_2019nov20/opencv/modules/core linked by target "opencv_perf_core" in directory /DM_Util/_INSTALL_LINUX/OpenCV_4/OpenCV_4.1.2_2019nov20/opencv/modules/core
etc....
At least, I would have thought that manually setting the location to the libcublas.so file would have resolved this, but perhaps CMake-GUI's detection is overriding that as well.