Commit 166724e8 authored by Aaron Watry's avatar Aaron Watry Committed by Tom Stellard

Fix discovery of OpenCL framework on MacOS.

Tested on Mac OS 10.7
Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
parent 31ab2d98
......@@ -29,8 +29,13 @@
# OPENCL_opencl_LIBRARY
# Path to OpenCL's library.
find_path(OPENCL_INCLUDE_PATH CL/opencl.h)
find_library(OPENCL_opencl_LIBRARY OpenCL)
if (APPLE)
find_path(OPENCL_INCLUDE_PATH OpenCL/cl.h)
else()
find_path(OPENCL_INCLUDE_PATH CL/opencl.h)
endif()
find_library(OPENCL_opencl_LIBRARY OpenCL)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenCL
......
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