Commit 9c3fa039 authored by Joseph Noir's avatar Joseph Noir

Add missing search paths to OpenCL library and headers.

parent 4c96b7be
...@@ -13,8 +13,8 @@ if (OPENCL_LIBRARIES) ...@@ -13,8 +13,8 @@ if (OPENCL_LIBRARIES)
src/program.cpp) src/program.cpp)
# build shared library if not compiling static only # build shared library if not compiling static only
if(NOT "${CAF_BUILD_STATIC_ONLY}" STREQUAL "yes") if(NOT "${CAF_BUILD_STATIC_ONLY}" STREQUAL "yes")
add_library(libcaf_opencl SHARED ${LIBCAF_OPENCL_SRCS} ${LIBCAF_OPENCL_HDRS}) add_library(libcaf_opencl SHARED ${LIBCAF_OPENCL_SRCS} ${LIBCAF_OPENCL_HDRS} ${OPENCL_INCLUDE_DIR})
target_link_libraries(libcaf_opencl ${LD_FLAGS} ${LIBCAF_CORE_LIBRARY}) target_link_libraries(libcaf_opencl ${LD_FLAGS} ${LIBCAF_CORE_LIBRARY} ${OPENCL_LIBRARIES})
set(LIBRARY_SOVERSION ${CAF_VERSION_MAJOR}) set(LIBRARY_SOVERSION ${CAF_VERSION_MAJOR})
set_target_properties(libcaf_opencl set_target_properties(libcaf_opencl
PROPERTIES PROPERTIES
......
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