Skip to content

Commit

Permalink
added some common search directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichard committed Feb 18, 2014
1 parent d3d06f9 commit de4a542
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions cmake/FindOpenCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ ELSE (APPLE)
# Unix style platforms
FIND_LIBRARY(OPENCL_LIBRARIES OpenCL
ENV LD_LIBRARY_PATH
"/usr/lib/nvidia-current"
"/usr/lib/beignet"
"/usr/lib/x86_64-linux-gnu"
"/usr/lib/x86-linux-gnu"
)

GET_FILENAME_COMPONENT(OPENCL_LIB_DIR ${OPENCL_LIBRARIES} PATH)
Expand All @@ -70,8 +74,16 @@ ELSE (APPLE)
# The AMD SDK currently does not place its headers
# in /usr/include, therefore also search relative
# to the library
FIND_PATH(OPENCL_INCLUDE_DIRS CL/cl.h PATHS ${_OPENCL_INC_CAND} "/usr/local/cuda/include")
FIND_PATH(_OPENCL_CPP_INCLUDE_DIRS CL/cl.hpp PATHS ${_OPENCL_INC_CAND} "/usr/local/cuda/include")
FIND_PATH(OPENCL_INCLUDE_DIRS CL/cl.h PATHS
${_OPENCL_INC_CAND}
"/usr/local/cuda/include"
"/usr/include/nvidia-current"
)
FIND_PATH(_OPENCL_CPP_INCLUDE_DIRS CL/cl.hpp PATHS
${_OPENCL_INC_CAND}
"/usr/local/cuda/include"
"/usr/include/nvidia-current"
)

ENDIF (WIN32)

Expand Down

0 comments on commit de4a542

Please sign in to comment.