mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Merge pull request #1250 from denzp:opencl_detection_unix
This commit is contained in:
commit
9d283dea63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user