OpenCV can't find the right version of CUDA
Upgrading from CMake 2.8 to CMake 3.2.2 seems to have solved this particular issue.
[This answer has been added from information gleaned from comments in order to get the question off the unanswered list]
I installed OpenCV 3.0.0 but I'm having troubles any C++ or Python code using OpenCV. For testing, I went into the directory opencv-3.0.0/samples and ran cmake to build the samples. I got the following error:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CUDA: Found unsuitable version "5.5", but required is exact version "7.0" (found /usr)
However, I'm pretty sure that I have the CUDA 7.0 installed and I verified by getting the following output from nvcc --version on the command line:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Mon_Feb_16_22:59:02_CST_2015
Cuda compilation tools, release 7.0, V7.0.27
Why might OpenCV think that I got the wrong version installed? Is there a workaround for this?