Commit 129f315f authored by Denis Zaryaev's avatar Denis Zaryaev

bugfix for OpenCL detection with Intel OpenCL SDK 1.2 on linux (Bug #3140)

parent 04c86f28
......@@ -20,10 +20,14 @@ else(APPLE)
DOC "OpenCL include directory"
NO_DEFAULT_PATH)
if (X86_64)
if (X86_64 AND WIN32)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win64 lib/x86_64 lib/x64)
elseif (X86)
elseif (X86 AND WIN32)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib/Win32 lib/x86)
elseif (X86_64 AND UNIX)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib64 lib)
elseif (X86 AND UNIX)
set(OPENCL_POSSIBLE_LIB_SUFFIXES lib32 lib)
endif()
find_library(OPENCL_LIBRARY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment