CMake always uses hacks for OpenCL CPP bindings.
The function find_OpenCL_cpp_bindings
does not change OpenCL_HAS_CPP_BINDINGS
in the parent scope.
This can be changed using set(OpenCL_HAS_CPP_BINDINGS TRUE PARENT_SCOPE)
in Macros.cmake
.
Also, cl.hpp
is deprecated and should be replaced with opencl.hpp
.