title: Opencv Building Error
body: <p>Im trying to setup Opencv with cuda=on on ubuntu 12.04. I did cmake Opencv with all settings which I want without any problem and my Cuda toolkit is working smooth. However, when I come make step of Opencv machines has given error. While make I got error</p>
  
  <p><strong><code>Linking CXX executable ../../bin/opencv_perf_core</code></strong></p>
  
  <p>My guake terminal view is below</p>
  
  <pre><code>brkn@brknPC:~/Source/OpenCV-2.4.2/release$ make
  [  4%] Built target opencv_core
  [  5%] Built target opencv_ts
  [ 11%] Built target opencv_imgproc
  [ 14%] Built target opencv_highgui
  Linking CXX executable ../../bin/opencv_perf_core
  ../../lib/libopencv_core.so.2.4.2: error: undefined reference to 'cuDeviceGetAttribute'
  collect2: ld returned 1 exit status
  make[2]: *** [bin/opencv_perf_core] Error 1
  make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
  make: *** [all] Error 2
  brkn@brknPC:~/Source/OpenCV-2.4.2/release$
  </code></pre>
  
  <p>I stuck in here and I cannot throw it off do you have any suggestion?</p>