properly set OpenCL lib search path

pull/1250/head
Denis Zaryaev 11 years ago
parent 129f315f7c
commit f4010cef29
  1. 18
      cmake/OpenCVDetectOpenCL.cmake

@ -20,14 +20,24 @@ else(APPLE)
DOC "OpenCL include directory"
NO_DEFAULT_PATH)
if (X86_64 AND WIN32)
if(WIN32)
if(X86_64)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win64 lib/x86_64 lib/x64)
elseif (X86 AND WIN32)
elseif(X86)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win32 lib/x86)
elseif (X86_64 AND UNIX)
else()
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib)
endif()
elseif(UNIX)
if(X86_64)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib64 lib)
elseif (X86 AND UNIX)
elseif(X86)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib32 lib)
else()
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib)
endif()
else()
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib)
endif()
find_library(OPENCL_LIBRARY

Loading…
Cancel
Save