Commit 199e3e35 authored by Christopher Bruns's avatar Christopher Bruns
Browse files

Incorporate apple-specific OpenCL include directory from the other...

Incorporate apple-specific OpenCL include directory from the other FindOpenCL.cmake in the platforms/opencl CMakeLists.txt file.
TODO - in future use only one FindOpenCL.cmake file.
parent 3f315a11
......@@ -11,7 +11,11 @@ if(ENV_OPENCL_DIR)
endif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
find_library(OPENCL_LIBRARY NAMES OpenCL PATHS ${OPENCL_LIB_SEARCH_PATH} NO_DEFAULT_PATH)
else(ENV_OPENCL_DIR)
find_path(OPENCL_INCLUDE_DIR NAMES CL/cl.h)
if (APPLE)
find_path(OPENCL_INCLUDE_DIR NAMES OpenCL/cl.h)
else (APPLE)
find_path(OPENCL_INCLUDE_DIR NAMES CL/cl.h)
endif(APPLE)
find_library(OPENCL_LIBRARY NAMES OpenCL)
endif(ENV_OPENCL_DIR)
......@@ -24,4 +28,4 @@ else(OpenCL_FOUND)
set(OPENCL_LIBRARIES)
endif(OpenCL_FOUND)
mark_as_advanced(OPENCL_INCLUDE_DIR OPENCL_LIBRARY)
\ No newline at end of file
mark_as_advanced(OPENCL_INCLUDE_DIR 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