Fixed building with OpenCL, but without the ocl module.

HAVE_opencv_ocl implies HAVE_OPENCL, so checking for both is not
necessary.
This commit is contained in:
Roman Donchenko
2013-10-30 14:02:08 +04:00
parent 8a4f1bbbdf
commit d07e7897a0
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
target_link_libraries(${the_target} opencv_nonfree)
endif()
if(HAVE_OPENCL)
if(HAVE_opencv_ocl)
target_link_libraries(${the_target} opencv_ocl)
endif()