Merge pull request #1250 from denzp:opencl_detection_unix

This commit is contained in:
Roman Donchenko 2013-08-13 11:57:22 +04:00 committed by OpenCV Buildbot
commit 9d283dea63

View File

@ -20,10 +20,24 @@ else(APPLE)
DOC "OpenCL include directory"
NO_DEFAULT_PATH)
if (X86_64)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win64 lib/x86_64 lib/x64)
elseif (X86)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win32 lib/x86)
if(WIN32)
if(X86_64)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win64 lib/x86_64 lib/x64)
elseif(X86)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win32 lib/x86)
else()
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib)
endif()
elseif(UNIX)
if(X86_64)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib64 lib)
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