Fix GPU example build failed with cuda 5.5
authorChanglin Hsieh <changlin@twrglobal.com>
Wed, 14 Aug 2013 08:16:03 +0000 (16:16 +0800)
committerChanglin Hsieh <changlin@twrglobal.com>
Wed, 14 Aug 2013 08:16:03 +0000 (16:16 +0800)
samples/gpu/CMakeLists.txt

index 85bee50..8d14e15 100644 (file)
@@ -36,7 +36,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
     set(the_target "example_${project}_${name}")
     add_executable(${the_target} ${srcs})
 
-    target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
+    target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_REQUIRED_DEPS} cuda)
     if(HAVE_opencv_nonfree)
       target_link_libraries(${the_target} opencv_nonfree)
     endif()